Giter VIP home page Giter VIP logo

maven1's Introduction

easyCompany3

전자정부표준프레임워크의 easy company3예제 입니다.

기본적인 내용은 거의 동일하고, 다음 세 가지를 추가 진행하고 있습니다.

  1. 정적 분석을 감안한 환경 구성
  2. 정적 분석 결과, 개선 작업
  3. 테스트 소스 추가/ 커버리지 추가

환경 구성

  • Porting end : Windows, Raspberry pi, MacOSX

H2 데이터베이스 세팅

  * Driver Class : org.h2.Driver
  * JDBC : jdbc:h2:file:/home/pi/Desktop/git_clone/easyCompany3/db/easyDB;MODE=MySQL;AUTO_SERVER=TRUE
  * USER/Password : ec/ec
  • 이 때, MODE는 MySQL 호환모드로, 다른 프로세스에서 접근 허용하기 위해 AUTO_SERVER=TRUE를 지정함.

스크립트 업로드

  • DDL : script/script_h2.sql 실행.
  • DML : script/data_h2.sql 실행.

서버 실행

Tomcat 실행

  • easyCompany-3.5.0.war 파일을 옮기고 실행.
  • 별도로 계정 생성할 것
  • 로그인 후 여러 페이지 이동

로그분석

access로그

  • localhost_access_log.2016-09-15.txt
input {
  file {
    path => "/Users/limsunghyun/DEV/apache-tomcat-8.0.36/logs/localhost_access_log.*.txt"
    start_position => "beginning"    
  }
}
filter {
  grok {
     match => { "message" => "%{COMMONAPACHELOG}"}
  }
  date {
     match => [ "timestamp", "dd/MMM/yyyy:HH:mm:ss Z" ]
  }
}
output {
    elasticsearch {
      hosts => ["127.0.0.1"]
      index => "easycompany3-2016"
      document_type => "easycompany3"
    }
    stdout {
       codec => "rubydebug"
    }
}

catalina.out 로그

  • log4j2.conf 패턴
<PatternLayout pattern="%d %5p [%c] %m%n" />
  • Logstash의 conf 파일 매칭

maven1's People

Contributors

pdw90 avatar sunghyunlim avatar sunghyun-lim avatar

Watchers

KIMYEJIN avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.