Collapse AllExpand All

4.2. 설정파일 (application.properties)

설정파일은 다음과 같이 구성되어 있다. 서비스 프레임워크 단독 서버를 실행하기 위해서는 설정파일에서 tomcat 서버 포트와 위치 등을 설정해야 한다.

1 #tomcat server port
2 server.port=7612
3 #tomcat location
4 server.tomcat.basedir=../
5 #tomcat URIEncoding
6 server.tomcat.uri-encoding=UTF-8
7 #tomcat access log
8 server.tomcat.accesslog.enabled=true
9 
10 #tomcat max threads
11 #server.tomcat.max-threads=200
12
13 #tomcat maxConnections
14 #server.tomcat.max-connections=10000
15
16 #standalone log location
17 logging.file=../logs/standalone.log
18
19 #context
20 application.contextpath=/ksf
21 #war location
22 application.filepath=../ksf.war
  • Line 2 : tomcat 서버포트

  • Line 4 : tomcat 위치

  • Line 6 : tomcat의 URI Encoding

  • Line 8 : tomcat 접속 로그 남길지 여부

  • Line 11 : Connector가 생성할 수 있는 최대 Thread 수

  • Line 14 : 동시 처리 가능한 최대 Connection 수

  • Line 17 : standalone 로그 파일 위치

  • Line 20 : 컨텍스트명

  • Line 22 : war 위치