Commit a01d5c189059c63d25e8999dd3a298f5cfa07030

Authored by sangkiham
1 parent a6468920

.

.tern-project 0 → 100644
  1 +{
  2 + "plugins": {
  3 + "guess-types": {
  4 +
  5 + },
  6 + "outline": {
  7 +
  8 + },
  9 + "angular": {
  10 +
  11 + }
  12 + },
  13 + "libs": [
  14 + "browser"
  15 + ]
  16 +}
0 \ No newline at end of file 17 \ No newline at end of file
log.config.path_IS_UNDEFINED/err_log.2022-03-29_0.log 0 → 100644
  1 +2022-03-29 11:08:41 [restartedMain] [ERROR] o.s.b.d.LoggingFailureAnalysisReporter - []:
  2 +
  3 +***************************
  4 +APPLICATION FAILED TO START
  5 +***************************
  6 +
  7 +Description:
  8 +
  9 +Field boardDao in com.daeucna.board.service.BoardService required a bean named 'sqlSession' that could not be found.
  10 +
  11 +The injection point has the following annotations:
  12 + - @org.springframework.beans.factory.annotation.Autowired(required=true)
  13 +
  14 +
  15 +Action:
  16 +
  17 +Consider defining a bean named 'sqlSession' in your configuration.
  18 +
log.config.path_IS_UNDEFINED/err_log.log
1 -2022-03-29 11:08:41 [restartedMain] [ERROR] o.s.b.d.LoggingFailureAnalysisReporter - []:  
2 -  
3 -***************************  
4 -APPLICATION FAILED TO START  
5 -***************************  
6 -  
7 -Description:  
8 -  
9 -Field boardDao in com.daeucna.board.service.BoardService required a bean named 'sqlSession' that could not be found.  
10 -  
11 -The injection point has the following annotations:  
12 - - @org.springframework.beans.factory.annotation.Autowired(required=true)  
13 -  
14 -  
15 -Action:  
16 -  
17 -Consider defining a bean named 'sqlSession' in your configuration.  
18 - 1 +2022-03-30 10:35:05 [restartedMain] [ERROR] o.s.boot.SpringApplication - []:Application run failed
  2 +java.lang.IllegalStateException: java.lang.IllegalStateException: Logback configuration error detected:
  3 +ERROR in ch.qos.logback.core.joran.action.PropertyAction - Could not find resource [logback-dev.properties].
  4 + at org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:328)
  5 + at org.springframework.boot.context.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:282)
  6 + at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:240)
  7 + at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:216)
  8 + at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
  9 + at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
  10 + at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
  11 + at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131)
  12 + at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:85)
  13 + at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:66)
  14 + at java.util.ArrayList.forEach(ArrayList.java:1257)
  15 + at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:120)
  16 + at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:114)
  17 + at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:65)
  18 + at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:339)
  19 + at org.springframework.boot.SpringApplication.run(SpringApplication.java:297)
  20 + at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312)
  21 + at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301)
  22 + at com.daeucna.board.BoardApplication.main(BoardApplication.java:12)
  23 + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  24 + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  25 + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  26 + at java.lang.reflect.Method.invoke(Method.java:498)
  27 + at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
  28 +Caused by: java.lang.IllegalStateException: Logback configuration error detected:
  29 +ERROR in ch.qos.logback.core.joran.action.PropertyAction - Could not find resource [logback-dev.properties].
  30 + at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:179)
  31 + at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:80)
  32 + at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:60)
  33 + at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:132)
  34 + at org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:313)
  35 + ... 23 common frames omitted
log.config.path_IS_UNDEFINED/log.config.filename_IS_UNDEFINED.2022-03-29_0.log 0 → 100644
  1 +2022-03-29 11:08:40 [restartedMain] [INFO ] com.daeucna.board.BoardApplication - []:Starting BoardApplication using Java 1.8.0_202 on sangkiham_PC with PID 15708 (D:\Working\java\board\target\classes started by sangkiham in D:\Working\java\board)
  2 +2022-03-29 11:08:40 [restartedMain] [DEBUG] com.daeucna.board.BoardApplication - []:Running with Spring Boot v2.6.4, Spring v5.3.16
  3 +2022-03-29 11:08:40 [restartedMain] [INFO ] com.daeucna.board.BoardApplication - []:The following 1 profile is active: "pom.xml"
  4 +2022-03-29 11:08:40 [restartedMain] [INFO ] o.s.b.d.e.DevToolsPropertyDefaultsPostProcessor - []:Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
  5 +2022-03-29 11:08:40 [restartedMain] [INFO ] o.s.b.d.e.DevToolsPropertyDefaultsPostProcessor - []:For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
  6 +2022-03-29 11:08:41 [restartedMain] [DEBUG] org.apache.ibatis.logging.LogFactory - []:Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
  7 +2022-03-29 11:08:41 [restartedMain] [WARN ] o.m.s.mapper.ClassPathMapperScanner - []:No MyBatis mapper was found in '[com.daeucna.board]' package. Please check your configuration.
  8 +2022-03-29 11:08:41 [restartedMain] [INFO ] o.s.b.w.e.tomcat.TomcatWebServer - []:Tomcat initialized with port(s): 8080 (http)
  9 +2022-03-29 11:08:41 [restartedMain] [INFO ] o.a.coyote.http11.Http11NioProtocol - []:Initializing ProtocolHandler ["http-nio-8080"]
  10 +2022-03-29 11:08:41 [restartedMain] [INFO ] o.a.catalina.core.StandardService - []:Starting service [Tomcat]
  11 +2022-03-29 11:08:41 [restartedMain] [INFO ] o.a.catalina.core.StandardEngine - []:Starting Servlet engine: [Apache Tomcat/9.0.58]
  12 +2022-03-29 11:08:41 [restartedMain] [INFO ] org.apache.jasper.servlet.TldScanner - []:At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
  13 +2022-03-29 11:08:41 [restartedMain] [INFO ] o.a.c.c.C.[Tomcat].[localhost].[/] - []:Initializing Spring embedded WebApplicationContext
  14 +2022-03-29 11:08:41 [restartedMain] [INFO ] o.s.b.w.s.c.ServletWebServerApplicationContext - []:Root WebApplicationContext: initialization completed in 681 ms
  15 +2022-03-29 11:08:41 [restartedMain] [WARN ] o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - []:Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'boardController': Unsatisfied dependency expressed through field 'boardService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'boardService': Unsatisfied dependency expressed through field 'boardDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'boardDao': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlSession' available
  16 +2022-03-29 11:08:41 [restartedMain] [INFO ] o.a.catalina.core.StandardService - []:Stopping service [Tomcat]
  17 +2022-03-29 11:08:41 [restartedMain] [INFO ] o.s.b.a.l.ConditionEvaluationReportLoggingListener - []:
  18 +
  19 +Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
  20 +2022-03-29 11:08:41 [restartedMain] [ERROR] o.s.b.d.LoggingFailureAnalysisReporter - []:
  21 +
  22 +***************************
  23 +APPLICATION FAILED TO START
  24 +***************************
  25 +
  26 +Description:
  27 +
  28 +Field boardDao in com.daeucna.board.service.BoardService required a bean named 'sqlSession' that could not be found.
  29 +
  30 +The injection point has the following annotations:
  31 + - @org.springframework.beans.factory.annotation.Autowired(required=true)
  32 +
  33 +
  34 +Action:
  35 +
  36 +Consider defining a bean named 'sqlSession' in your configuration.
  37 +
log.config.path_IS_UNDEFINED/log.config.filename_IS_UNDEFINED.log
1 -2022-03-29 11:08:40 [restartedMain] [INFO ] com.daeucna.board.BoardApplication - []:Starting BoardApplication using Java 1.8.0_202 on sangkiham_PC with PID 15708 (D:\Working\java\board\target\classes started by sangkiham in D:\Working\java\board)  
2 -2022-03-29 11:08:40 [restartedMain] [DEBUG] com.daeucna.board.BoardApplication - []:Running with Spring Boot v2.6.4, Spring v5.3.16  
3 -2022-03-29 11:08:40 [restartedMain] [INFO ] com.daeucna.board.BoardApplication - []:The following 1 profile is active: "pom.xml"  
4 -2022-03-29 11:08:40 [restartedMain] [INFO ] o.s.b.d.e.DevToolsPropertyDefaultsPostProcessor - []:Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable  
5 -2022-03-29 11:08:40 [restartedMain] [INFO ] o.s.b.d.e.DevToolsPropertyDefaultsPostProcessor - []:For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'  
6 -2022-03-29 11:08:41 [restartedMain] [DEBUG] org.apache.ibatis.logging.LogFactory - []:Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.  
7 -2022-03-29 11:08:41 [restartedMain] [WARN ] o.m.s.mapper.ClassPathMapperScanner - []:No MyBatis mapper was found in '[com.daeucna.board]' package. Please check your configuration.  
8 -2022-03-29 11:08:41 [restartedMain] [INFO ] o.s.b.w.e.tomcat.TomcatWebServer - []:Tomcat initialized with port(s): 8080 (http)  
9 -2022-03-29 11:08:41 [restartedMain] [INFO ] o.a.coyote.http11.Http11NioProtocol - []:Initializing ProtocolHandler ["http-nio-8080"]  
10 -2022-03-29 11:08:41 [restartedMain] [INFO ] o.a.catalina.core.StandardService - []:Starting service [Tomcat]  
11 -2022-03-29 11:08:41 [restartedMain] [INFO ] o.a.catalina.core.StandardEngine - []:Starting Servlet engine: [Apache Tomcat/9.0.58]  
12 -2022-03-29 11:08:41 [restartedMain] [INFO ] org.apache.jasper.servlet.TldScanner - []:At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.  
13 -2022-03-29 11:08:41 [restartedMain] [INFO ] o.a.c.c.C.[Tomcat].[localhost].[/] - []:Initializing Spring embedded WebApplicationContext  
14 -2022-03-29 11:08:41 [restartedMain] [INFO ] o.s.b.w.s.c.ServletWebServerApplicationContext - []:Root WebApplicationContext: initialization completed in 681 ms  
15 -2022-03-29 11:08:41 [restartedMain] [WARN ] o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - []:Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'boardController': Unsatisfied dependency expressed through field 'boardService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'boardService': Unsatisfied dependency expressed through field 'boardDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'boardDao': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlSession' available  
16 -2022-03-29 11:08:41 [restartedMain] [INFO ] o.a.catalina.core.StandardService - []:Stopping service [Tomcat]  
17 -2022-03-29 11:08:41 [restartedMain] [INFO ] o.s.b.a.l.ConditionEvaluationReportLoggingListener - []:  
18 -  
19 -Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.  
20 -2022-03-29 11:08:41 [restartedMain] [ERROR] o.s.b.d.LoggingFailureAnalysisReporter - []:  
21 -  
22 -***************************  
23 -APPLICATION FAILED TO START  
24 -***************************  
25 -  
26 -Description:  
27 -  
28 -Field boardDao in com.daeucna.board.service.BoardService required a bean named 'sqlSession' that could not be found.  
29 -  
30 -The injection point has the following annotations:  
31 - - @org.springframework.beans.factory.annotation.Autowired(required=true)  
32 -  
33 -  
34 -Action:  
35 -  
36 -Consider defining a bean named 'sqlSession' in your configuration.  
37 - 1 +2022-03-30 10:35:05 [restartedMain] [ERROR] o.s.boot.SpringApplication - []:Application run failed
  2 +java.lang.IllegalStateException: java.lang.IllegalStateException: Logback configuration error detected:
  3 +ERROR in ch.qos.logback.core.joran.action.PropertyAction - Could not find resource [logback-dev.properties].
  4 + at org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:328)
  5 + at org.springframework.boot.context.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:282)
  6 + at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:240)
  7 + at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:216)
  8 + at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
  9 + at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
  10 + at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
  11 + at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131)
  12 + at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:85)
  13 + at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:66)
  14 + at java.util.ArrayList.forEach(ArrayList.java:1257)
  15 + at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:120)
  16 + at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:114)
  17 + at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:65)
  18 + at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:339)
  19 + at org.springframework.boot.SpringApplication.run(SpringApplication.java:297)
  20 + at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312)
  21 + at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301)
  22 + at com.daeucna.board.BoardApplication.main(BoardApplication.java:12)
  23 + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  24 + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  25 + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  26 + at java.lang.reflect.Method.invoke(Method.java:498)
  27 + at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
  28 +Caused by: java.lang.IllegalStateException: Logback configuration error detected:
  29 +ERROR in ch.qos.logback.core.joran.action.PropertyAction - Could not find resource [logback-dev.properties].
  30 + at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:179)
  31 + at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:80)
  32 + at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:60)
  33 + at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:132)
  34 + at org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:313)
  35 + ... 23 common frames omitted
  36 +2022-03-30 10:41:00 [restartedMain] [WARN ] o.m.s.mapper.ClassPathMapperScanner - []:No MyBatis mapper was found in '[com.daeucna.board]' package. Please check your configuration.
  37 +2022-03-30 10:41:37 [restartedMain] [DEBUG] org.apache.ibatis.logging.LogFactory - []:Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
  38 +2022-03-30 10:41:37 [restartedMain] [WARN ] o.m.s.mapper.ClassPathMapperScanner - []:No MyBatis mapper was found in '[com.daeucna.board]' package. Please check your configuration.
  39 +2022-03-30 10:42:33 [restartedMain] [WARN ] o.m.s.mapper.ClassPathMapperScanner - []:No MyBatis mapper was found in '[com.daeucna.board]' package. Please check your configuration.
  40 +2022-03-30 10:42:51 [restartedMain] [DEBUG] org.apache.ibatis.logging.LogFactory - []:Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
  41 +2022-03-30 10:42:51 [restartedMain] [WARN ] o.m.s.mapper.ClassPathMapperScanner - []:No MyBatis mapper was found in '[com.daeucna.board]' package. Please check your configuration.
  42 +2022-03-30 10:43:58 [restartedMain] [INFO ] com.daeucna.board.BoardApplication - []:Starting BoardApplication using Java 1.8.0_202 on sangkiham_PC with PID 13128 (D:\Working\java\board\target\classes started by sangkiham in D:\Working\java\board)
  43 +2022-03-30 10:43:58 [restartedMain] [INFO ] com.daeucna.board.BoardApplication - []:The following 1 profile is active: "run"
  44 +2022-03-30 10:43:59 [restartedMain] [WARN ] o.m.s.mapper.ClassPathMapperScanner - []:No MyBatis mapper was found in '[com.daeucna.board]' package. Please check your configuration.
  45 +2022-03-30 10:43:59 [restartedMain] [INFO ] o.s.b.w.e.tomcat.TomcatWebServer - []:Tomcat initialized with port(s): 8380 (http)
  46 +2022-03-30 10:43:59 [restartedMain] [INFO ] o.a.coyote.http11.Http11NioProtocol - []:Initializing ProtocolHandler ["http-nio-8380"]
  47 +2022-03-30 10:43:59 [restartedMain] [INFO ] o.a.catalina.core.StandardService - []:Starting service [Tomcat]
  48 +2022-03-30 10:43:59 [restartedMain] [INFO ] o.a.catalina.core.StandardEngine - []:Starting Servlet engine: [Apache Tomcat/9.0.58]
  49 +2022-03-30 10:43:59 [restartedMain] [INFO ] o.a.c.c.C.[Tomcat].[localhost].[/] - []:Initializing Spring embedded WebApplicationContext
  50 +2022-03-30 10:43:59 [restartedMain] [INFO ] o.s.b.w.s.c.ServletWebServerApplicationContext - []:Root WebApplicationContext: initialization completed in 197 ms
  51 +2022-03-30 10:43:59 [restartedMain] [INFO ] o.s.s.web.DefaultSecurityFilterChain - []:Will not secure any request
  52 +2022-03-30 10:43:59 [restartedMain] [INFO ] o.s.b.d.a.OptionalLiveReloadServer - []:LiveReload server is running on port 35729
  53 +2022-03-30 10:43:59 [restartedMain] [INFO ] o.a.coyote.http11.Http11NioProtocol - []:Starting ProtocolHandler ["http-nio-8380"]
  54 +2022-03-30 10:43:59 [restartedMain] [INFO ] o.s.b.w.e.tomcat.TomcatWebServer - []:Tomcat started on port(s): 8380 (http) with context path ''
  55 +2022-03-30 10:43:59 [restartedMain] [INFO ] com.daeucna.board.BoardApplication - []:Started BoardApplication in 0.344 seconds (JVM running for 69.491)
  56 +2022-03-30 10:43:59 [restartedMain] [INFO ] o.s.b.d.a.ConditionEvaluationDeltaLoggingListener - []:Condition evaluation unchanged
  57 +2022-03-30 10:44:23 [RMI TCP Connection(14)-127.0.0.1] [INFO ] o.s.b.a.SpringApplicationAdminMXBeanRegistrar$SpringApplicationAdmin - []:Application shutdown requested.
  58 +2022-03-30 10:44:32 [restartedMain] [INFO ] com.daeucna.board.BoardApplication - []:Starting BoardApplication using Java 1.8.0_202 on sangkiham_PC with PID 2388 (D:\Working\java\board\target\classes started by sangkiham in D:\Working\java\board)
  59 +2022-03-30 10:44:32 [restartedMain] [INFO ] com.daeucna.board.BoardApplication - []:The following 1 profile is active: "run"
  60 +2022-03-30 10:44:32 [restartedMain] [INFO ] o.s.b.d.e.DevToolsPropertyDefaultsPostProcessor - []:Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
  61 +2022-03-30 10:44:32 [restartedMain] [INFO ] o.s.b.d.e.DevToolsPropertyDefaultsPostProcessor - []:For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
  62 +2022-03-30 10:44:32 [restartedMain] [DEBUG] org.apache.ibatis.logging.LogFactory - []:Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
  63 +2022-03-30 10:44:32 [restartedMain] [WARN ] o.m.s.mapper.ClassPathMapperScanner - []:No MyBatis mapper was found in '[com.daeucna.board]' package. Please check your configuration.
  64 +2022-03-30 10:44:33 [restartedMain] [INFO ] o.s.b.w.e.tomcat.TomcatWebServer - []:Tomcat initialized with port(s): 8380 (http)
  65 +2022-03-30 10:44:33 [restartedMain] [INFO ] o.a.coyote.http11.Http11NioProtocol - []:Initializing ProtocolHandler ["http-nio-8380"]
  66 +2022-03-30 10:44:33 [restartedMain] [INFO ] o.a.catalina.core.StandardService - []:Starting service [Tomcat]
  67 +2022-03-30 10:44:33 [restartedMain] [INFO ] o.a.catalina.core.StandardEngine - []:Starting Servlet engine: [Apache Tomcat/9.0.58]
  68 +2022-03-30 10:44:33 [restartedMain] [INFO ] o.a.c.c.C.[Tomcat].[localhost].[/] - []:Initializing Spring embedded WebApplicationContext
  69 +2022-03-30 10:44:33 [restartedMain] [INFO ] o.s.b.w.s.c.ServletWebServerApplicationContext - []:Root WebApplicationContext: initialization completed in 847 ms
  70 +2022-03-30 10:44:33 [restartedMain] [INFO ] o.s.s.web.DefaultSecurityFilterChain - []:Will not secure any request
  71 +2022-03-30 10:44:33 [restartedMain] [INFO ] o.s.b.d.a.OptionalLiveReloadServer - []:LiveReload server is running on port 35729
  72 +2022-03-30 10:44:33 [restartedMain] [INFO ] o.a.coyote.http11.Http11NioProtocol - []:Starting ProtocolHandler ["http-nio-8380"]
  73 +2022-03-30 10:44:33 [restartedMain] [INFO ] o.s.b.w.e.tomcat.TomcatWebServer - []:Tomcat started on port(s): 8380 (http) with context path ''
  74 +2022-03-30 10:44:33 [restartedMain] [INFO ] com.daeucna.board.BoardApplication - []:Started BoardApplication in 1.989 seconds (JVM running for 2.614)
  75 +2022-03-30 10:44:44 [http-nio-8380-exec-1] [INFO ] o.a.c.c.C.[Tomcat].[localhost].[/] - []:Initializing Spring DispatcherServlet 'dispatcherServlet'
  76 +2022-03-30 10:44:44 [http-nio-8380-exec-1] [INFO ] o.s.web.servlet.DispatcherServlet - []:Initializing Servlet 'dispatcherServlet'
  77 +2022-03-30 10:44:44 [http-nio-8380-exec-1] [INFO ] o.s.web.servlet.DispatcherServlet - []:Completed initialization in 1 ms
  78 +2022-03-30 10:45:00 [restartedMain] [INFO ] com.daeucna.board.BoardApplication - []:Starting BoardApplication using Java 1.8.0_202 on sangkiham_PC with PID 2388 (D:\Working\java\board\target\classes started by sangkiham in D:\Working\java\board)
  79 +2022-03-30 10:45:00 [restartedMain] [INFO ] com.daeucna.board.BoardApplication - []:The following 1 profile is active: "run"
  80 +2022-03-30 10:45:01 [restartedMain] [WARN ] o.m.s.mapper.ClassPathMapperScanner - []:No MyBatis mapper was found in '[com.daeucna.board]' package. Please check your configuration.
  81 +2022-03-30 10:45:01 [restartedMain] [INFO ] o.s.b.w.e.tomcat.TomcatWebServer - []:Tomcat initialized with port(s): 8380 (http)
  82 +2022-03-30 10:45:01 [restartedMain] [INFO ] o.a.coyote.http11.Http11NioProtocol - []:Initializing ProtocolHandler ["http-nio-8380"]
  83 +2022-03-30 10:45:01 [restartedMain] [INFO ] o.a.catalina.core.StandardService - []:Starting service [Tomcat]
  84 +2022-03-30 10:45:01 [restartedMain] [INFO ] o.a.catalina.core.StandardEngine - []:Starting Servlet engine: [Apache Tomcat/9.0.58]
  85 +2022-03-30 10:45:01 [restartedMain] [INFO ] o.a.c.c.C.[Tomcat].[localhost].[/] - []:Initializing Spring embedded WebApplicationContext
  86 +2022-03-30 10:45:01 [restartedMain] [INFO ] o.s.b.w.s.c.ServletWebServerApplicationContext - []:Root WebApplicationContext: initialization completed in 198 ms
  87 +2022-03-30 10:45:01 [restartedMain] [INFO ] o.s.s.web.DefaultSecurityFilterChain - []:Will not secure any request
  88 +2022-03-30 10:45:01 [restartedMain] [INFO ] o.s.b.d.a.OptionalLiveReloadServer - []:LiveReload server is running on port 35729
  89 +2022-03-30 10:45:01 [restartedMain] [INFO ] o.a.coyote.http11.Http11NioProtocol - []:Starting ProtocolHandler ["http-nio-8380"]
  90 +2022-03-30 10:45:01 [restartedMain] [INFO ] o.s.b.w.e.tomcat.TomcatWebServer - []:Tomcat started on port(s): 8380 (http) with context path ''
  91 +2022-03-30 10:45:01 [restartedMain] [INFO ] com.daeucna.board.BoardApplication - []:Started BoardApplication in 0.344 seconds (JVM running for 29.897)
  92 +2022-03-30 10:45:01 [restartedMain] [INFO ] o.s.b.d.a.ConditionEvaluationDeltaLoggingListener - []:Condition evaluation unchanged
  93 +2022-03-30 10:45:48 [restartedMain] [WARN ] o.m.s.mapper.ClassPathMapperScanner - []:No MyBatis mapper was found in '[com.daeucna.board]' package. Please check your configuration.
  94 +2022-03-30 10:45:48 [restartedMain] [INFO ] o.s.b.w.e.tomcat.TomcatWebServer - []:Tomcat initialized with port(s): 8380 (http)
  95 +2022-03-30 10:45:48 [restartedMain] [INFO ] o.a.coyote.http11.Http11NioProtocol - []:Initializing ProtocolHandler ["http-nio-8380"]
  96 +2022-03-30 10:45:48 [restartedMain] [INFO ] o.a.catalina.core.StandardService - []:Starting service [Tomcat]
  97 +2022-03-30 10:45:48 [restartedMain] [INFO ] o.a.catalina.core.StandardEngine - []:Starting Servlet engine: [Apache Tomcat/9.0.58]
  98 +2022-03-30 10:45:48 [restartedMain] [INFO ] o.a.c.c.C.[Tomcat].[localhost].[/] - []:Initializing Spring embedded WebApplicationContext
  99 +2022-03-30 10:45:48 [restartedMain] [INFO ] o.s.b.w.s.c.ServletWebServerApplicationContext - []:Root WebApplicationContext: initialization completed in 190 ms
  100 +2022-03-30 10:45:48 [restartedMain] [INFO ] o.s.s.web.DefaultSecurityFilterChain - []:Will not secure any request
  101 +2022-03-30 10:45:48 [restartedMain] [INFO ] o.s.b.d.a.OptionalLiveReloadServer - []:LiveReload server is running on port 35729
  102 +2022-03-30 10:45:48 [restartedMain] [INFO ] o.a.coyote.http11.Http11NioProtocol - []:Starting ProtocolHandler ["http-nio-8380"]
  103 +2022-03-30 10:45:48 [restartedMain] [INFO ] o.s.b.w.e.tomcat.TomcatWebServer - []:Tomcat started on port(s): 8380 (http) with context path ''
  104 +2022-03-30 10:45:48 [restartedMain] [INFO ] o.s.b.d.a.ConditionEvaluationDeltaLoggingListener - []:Condition evaluation unchanged
  105 +2022-03-30 10:45:57 [http-nio-8380-exec-1] [INFO ] o.a.c.c.C.[Tomcat].[localhost].[/] - []:Initializing Spring DispatcherServlet 'dispatcherServlet'
  106 +2022-03-30 10:45:57 [http-nio-8380-exec-1] [INFO ] o.s.web.servlet.DispatcherServlet - []:Initializing Servlet 'dispatcherServlet'
  107 +2022-03-30 10:45:57 [http-nio-8380-exec-1] [INFO ] o.s.web.servlet.DispatcherServlet - []:Completed initialization in 0 ms
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 <dependency> 25 <dependency>
26 <groupId>org.mybatis.spring.boot</groupId> 26 <groupId>org.mybatis.spring.boot</groupId>
27 <artifactId>mybatis-spring-boot-starter</artifactId> 27 <artifactId>mybatis-spring-boot-starter</artifactId>
28 - <version>2.2.2</version> 28 + <version>2.2.2</version>
29 </dependency> 29 </dependency>
30 30
31 <dependency> 31 <dependency>
@@ -123,7 +123,6 @@ @@ -123,7 +123,6 @@
123 <dependency> 123 <dependency>
124 <groupId>nz.net.ultraq.thymeleaf</groupId> 124 <groupId>nz.net.ultraq.thymeleaf</groupId>
125 <artifactId>thymeleaf-layout-dialect</artifactId> 125 <artifactId>thymeleaf-layout-dialect</artifactId>
126 - <version>3.1.0</version>  
127 </dependency> 126 </dependency>
128 127
129 <dependency> 128 <dependency>
@@ -139,6 +138,7 @@ @@ -139,6 +138,7 @@
139 <artifactId>spring-security-test</artifactId> 138 <artifactId>spring-security-test</artifactId>
140 <scope>test</scope> 139 <scope>test</scope>
141 </dependency> 140 </dependency>
  141 +
142 </dependencies> 142 </dependencies>
143 143
144 <build> 144 <build>
pom_war.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4 + <modelVersion>4.0.0</modelVersion>
  5 + <parent>
  6 + <groupId>org.springframework.boot</groupId>
  7 + <artifactId>spring-boot-starter-parent</artifactId>
  8 + <version>2.6.4</version>
  9 + <relativePath/> <!-- lookup parent from repository -->
  10 + </parent>
  11 + <groupId>com.daeucna</groupId>
  12 + <artifactId>board</artifactId>
  13 + <version>0.0.1-SNAPSHOT</version>
  14 + <name>board</name>
  15 + <!-- War deploy시-->
  16 + <packaging>war</packaging>
  17 +
  18 + <description>Demo project for Spring Boot</description>
  19 + <properties>
  20 + <java.version>1.8</java.version>
  21 + <jackson.version>2.9.5</jackson.version>
  22 + </properties>
  23 + <dependencies>
  24 + <dependency>
  25 + <groupId>org.springframework.boot</groupId>
  26 + <artifactId>spring-boot-starter-web</artifactId>
  27 + <!-- war deploy시 -->
  28 + <exclusions>
  29 + <exclusion>
  30 + <groupId>org.springframework.boot</groupId>
  31 + <artifactId>spring-boot-starter-logging</artifactId>
  32 + </exclusion>
  33 + </exclusions>
  34 +
  35 + </dependency>
  36 + <dependency>
  37 + <groupId>org.mybatis.spring.boot</groupId>
  38 + <artifactId>mybatis-spring-boot-starter</artifactId>
  39 + <version>2.2.2</version>
  40 + </dependency>
  41 +
  42 + <dependency>
  43 + <groupId>org.springframework.boot</groupId>
  44 + <artifactId>spring-boot-devtools</artifactId>
  45 + <scope>runtime</scope>
  46 + <optional>true</optional>
  47 + </dependency>
  48 + <dependency>
  49 + <groupId>org.mariadb.jdbc</groupId>
  50 + <artifactId>mariadb-java-client</artifactId>
  51 + <scope>runtime</scope>
  52 + </dependency>
  53 + <dependency>
  54 + <groupId>org.springframework.boot</groupId>
  55 + <artifactId>spring-boot-configuration-processor</artifactId>
  56 + <optional>true</optional>
  57 + </dependency>
  58 + <dependency>
  59 + <groupId>org.projectlombok</groupId>
  60 + <artifactId>lombok</artifactId>
  61 + <optional>true</optional>
  62 + </dependency>
  63 + <dependency>
  64 + <groupId>org.springframework.boot</groupId>
  65 + <artifactId>spring-boot-starter-test</artifactId>
  66 + <scope>test</scope>
  67 + </dependency>
  68 + <!-- https://mvnrepository.com/artifact/org.bgee.log4jdbc-log4j2/log4jdbc-log4j2-jdbc4.1 -->
  69 + <dependency>
  70 + <groupId>org.bgee.log4jdbc-log4j2</groupId>
  71 + <artifactId>log4jdbc-log4j2-jdbc4.1</artifactId>
  72 + <version>1.16</version>
  73 + </dependency>
  74 +
  75 + <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 -->
  76 + <dependency>
  77 + <groupId>io.springfox</groupId>
  78 + <artifactId>springfox-swagger2</artifactId>
  79 + <version>2.9.2</version>
  80 + </dependency>
  81 +
  82 + <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui -->
  83 + <dependency>
  84 + <groupId>io.springfox</groupId>
  85 + <artifactId>springfox-swagger-ui</artifactId>
  86 + <version>2.9.2</version>
  87 + </dependency>
  88 +
  89 + <!-- JUnit4 사용하기 위해서 Vintage Engine 모듈을 제외 -->
  90 + <dependency>
  91 + <groupId>org.junit.vintage</groupId>
  92 + <artifactId>junit-vintage-engine</artifactId>
  93 + <scope>test</scope>
  94 + <exclusions>
  95 + <exclusion>
  96 + <groupId>org.hamcrest</groupId>
  97 + <artifactId>hamcrest-core</artifactId>
  98 + </exclusion>
  99 + </exclusions>
  100 + </dependency>
  101 +
  102 + <!-- https://mvnrepository.com/artifact/org.springframework/spring-oxm -->
  103 + <dependency>
  104 + <groupId>org.springframework</groupId>
  105 + <artifactId>spring-oxm</artifactId>
  106 + </dependency>
  107 +
  108 + <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-jaxb-annotations -->
  109 + <dependency>
  110 + <groupId>com.fasterxml.jackson.module</groupId>
  111 + <artifactId>jackson-module-jaxb-annotations</artifactId>
  112 + </dependency>
  113 +
  114 + <!-- Apache Commons file upload -->
  115 + <dependency>
  116 + <groupId>commons-fileupload</groupId>
  117 + <artifactId>commons-fileupload</artifactId>
  118 + <version>1.2.2</version>
  119 + </dependency>
  120 +
  121 + <!-- Apache Commons IO -->
  122 + <dependency>
  123 + <groupId>org.apache.commons</groupId>
  124 + <artifactId>commons-io</artifactId>
  125 + <version>1.3.2</version>
  126 + </dependency>
  127 +
  128 + <dependency>
  129 + <groupId>org.springframework.boot</groupId>
  130 + <artifactId>spring-boot-starter-thymeleaf</artifactId>
  131 + </dependency>
  132 +
  133 + <!-- https://mvnrepository.com/artifact/nz.net.ultraq.thymeleaf/thymeleaf-layout-dialect -->
  134 + <dependency>
  135 + <groupId>nz.net.ultraq.thymeleaf</groupId>
  136 + <artifactId>thymeleaf-layout-dialect</artifactId>
  137 + <version>3.1.0</version>
  138 + </dependency>
  139 +
  140 + <dependency>
  141 + <groupId>org.springframework.boot</groupId>
  142 + <artifactId>spring-boot-starter</artifactId>
  143 + <!-- war deploy시 -->
  144 + <exclusions>
  145 + <exclusion>
  146 + <groupId>org.springframework.boot</groupId>
  147 + <artifactId>spring-boot-starter-logging</artifactId>
  148 + </exclusion>
  149 + </exclusions>
  150 +
  151 + </dependency>
  152 + <dependency>
  153 + <groupId>org.springframework.boot</groupId>
  154 + <artifactId>spring-boot-starter-security</artifactId>
  155 + </dependency>
  156 + <dependency>
  157 + <groupId>org.springframework.security</groupId>
  158 + <artifactId>spring-security-test</artifactId>
  159 + <scope>test</scope>
  160 + </dependency>
  161 +
  162 + <!-- War로 패캐징 할때 필요함. -->
  163 + <dependency>
  164 + <groupId>org.springframework.boot</groupId>
  165 + <artifactId>spring-boot-starter-tomcat</artifactId>
  166 + <scope>provided</scope>
  167 + </dependency>
  168 +
  169 +
  170 + </dependencies>
  171 +
  172 + <build>
  173 + <plugins>
  174 + <plugin>
  175 + <groupId>org.springframework.boot</groupId>
  176 + <artifactId>spring-boot-maven-plugin</artifactId>
  177 + <configuration>
  178 + <excludes>
  179 + <exclude>
  180 + <groupId>org.projectlombok</groupId>
  181 + <artifactId>lombok</artifactId>
  182 + </exclude>
  183 + </excludes>
  184 + </configuration>
  185 + </plugin>
  186 + </plugins>
  187 + </build>
  188 +
  189 +</project>
src/main/java/com/daeucna/board/BoardApplication.java
@@ -2,7 +2,8 @@ package com.daeucna.board; @@ -2,7 +2,8 @@ package com.daeucna.board;
2 2
3 import org.springframework.boot.SpringApplication; 3 import org.springframework.boot.SpringApplication;
4 import org.springframework.boot.autoconfigure.SpringBootApplication; 4 import org.springframework.boot.autoconfigure.SpringBootApplication;
5 -import org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration; 5 +import org.springframework.boot.builder.SpringApplicationBuilder;
  6 +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
6 7
7 @SpringBootApplication 8 @SpringBootApplication
8 public class BoardApplication { 9 public class BoardApplication {
@@ -12,3 +13,15 @@ public class BoardApplication { @@ -12,3 +13,15 @@ public class BoardApplication {
12 } 13 }
13 14
14 } 15 }
  16 +
  17 +//war로 deploy시
  18 +//public class BoardApplication extends SpringBootServletInitializer {
  19 +// public static void main(String[] args) {
  20 +// SpringApplication application = new SpringApplication(BoardApplication.class);
  21 +// application.run(args);
  22 +// }
  23 +// @Override
  24 +// protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
  25 +// return application.sources(BoardApplication.class);
  26 +// }
  27 +//}
src/main/java/com/daeucna/board/security/CustomAuthenticationFailureHandler.java
@@ -18,7 +18,7 @@ public class CustomAuthenticationFailureHandler implements AuthenticationFailure @@ -18,7 +18,7 @@ public class CustomAuthenticationFailureHandler implements AuthenticationFailure
18 18
19 @Override 19 @Override
20 public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException, ServletException { 20 public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException, ServletException {
21 - response.sendRedirect("/login"); 21 + response.sendRedirect(request.getContextPath() + "/");
22 } 22 }
23 23
24 } 24 }
25 \ No newline at end of file 25 \ No newline at end of file
src/main/java/com/daeucna/board/security/CustomAuthenticationSuccessHandler.java
@@ -22,7 +22,7 @@ public class CustomAuthenticationSuccessHandler implements AuthenticationSuccess @@ -22,7 +22,7 @@ public class CustomAuthenticationSuccessHandler implements AuthenticationSuccess
22 HttpSession session = request.getSession(); 22 HttpSession session = request.getSession();
23 session.setMaxInactiveInterval(60); 23 session.setMaxInactiveInterval(60);
24 session.setAttribute("authentication", authentication); 24 session.setAttribute("authentication", authentication);
25 - response.sendRedirect("/"); 25 + response.sendRedirect(request.getContextPath() + "/");
26 } 26 }
27 27
28 } 28 }
29 \ No newline at end of file 29 \ No newline at end of file
src/main/resources/application-dev.properties 0 → 100644
  1 +spring.datasource.hikari.driver-class-name=net.sf.log4jdbc.sql.jdbcapi.DriverSpy
  2 +spring.datasource.hikari.jdbc-url=jdbc:log4jdbc:mariadb://localhost:3306/board?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC
  3 +spring.datasource.hikari.username=root
  4 +spring.datasource.hikari.password=sangkiham
  5 +
  6 +# root 로깅 레벨 설정
  7 +logging.level.root=info
  8 +# 패키지 단위로 로깅 레벨 설정
  9 +logging.level.com.daeucna.board=debug
  10 +
  11 +#Server Context-path, port
  12 +server.servlet.context-path=/
  13 +server.port=8080
  14 +
  15 +#MultipartResolver 설정
  16 +spring.servlet.multipart.location=c:\\board\\temp
  17 +spring.servlet.multipart.max-file-size=100MB
  18 +spring.servlet.multipart.max-request-size=50MB
  19 +
  20 +# webapp intro page
  21 +spring.webservice.intro=/board/boardList
0 \ No newline at end of file 22 \ No newline at end of file
src/main/resources/application-run.properties 0 → 100644
  1 +spring.datasource.hikari.driver-class-name=net.sf.log4jdbc.sql.jdbcapi.DriverSpy
  2 +spring.datasource.hikari.jdbc-url=jdbc:log4jdbc:mariadb://daeuserver2.iptime.org:3306/board?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC
  3 +spring.datasource.hikari.username=root
  4 +spring.datasource.hikari.password=daeucna
  5 +
  6 +# root 로깅 레벨 설정
  7 +logging.level.root=info
  8 +# 패키지 단위로 로깅 레벨 설정
  9 +logging.level.com.daeucna.board=warn
  10 +
  11 +#Server Context-path, port
  12 +server.servlet.context-path=/
  13 +server.port=8380
  14 +
  15 +#MultipartResolver 설정
  16 +#spring.servlet.multipart.location=c:\\board\\temp
  17 +spring.servlet.multipart.max-file-size=100MB
  18 +spring.servlet.multipart.max-request-size=50MB
  19 +
  20 +# webapp intro page
  21 +spring.webservice.intro=/board/boardList
0 \ No newline at end of file 22 \ No newline at end of file
src/main/resources/application.properties
1 -spring.datasource.hikari.driver-class-name=net.sf.log4jdbc.sql.jdbcapi.DriverSpy  
2 -spring.datasource.hikari.jdbc-url=jdbc:log4jdbc:mariadb://localhost:3306/board?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC  
3 -spring.datasource.hikari.username=root  
4 -spring.datasource.hikari.password=sangkiham  
5 -  
6 -# root 로깅 레벨 설정  
7 -logging.level.root=info  
8 -# 패키지 단위로 로깅 레벨 설정  
9 -logging.level.com.daeucna.board=debug  
10 -  
11 # profiles 설정 1 # profiles 설정
12 -spring.profiles.active=local  
13 -  
14 -#Server Context-path, port  
15 -server.servlet.context-path=/  
16 -server.port=8080  
17 -  
18 -#MultipartResolver 설정  
19 -spring.servlet.multipart.location=c:\\board\\temp  
20 -spring.servlet.multipart.max-file-size=10MB  
21 -spring.servlet.multipart.max-request-size=50MB 2 +spring.profiles.active=dev
22 3
23 # 정적 리소스에 변화가 있을 때 바로 반영한다. 4 # 정적 리소스에 변화가 있을 때 바로 반영한다.
24 spring.devtools.livereload.enabled=true 5 spring.devtools.livereload.enabled=true
@@ -29,6 +10,3 @@ spring.thymeleaf.suffix=.html @@ -29,6 +10,3 @@ spring.thymeleaf.suffix=.html
29 spring.thymeleaf.cache=false 10 spring.thymeleaf.cache=false
30 # templates 디렉토리에 파일이 있는지 없는지 체크, 없으면 에러를 발생시킨다. 11 # templates 디렉토리에 파일이 있는지 없는지 체크, 없으면 에러를 발생시킨다.
31 spring.thymeleaf.check-template-location=true 12 spring.thymeleaf.check-template-location=true
32 -  
33 -# webapp intro page  
34 -spring.webservice.intro=/board/boardList  
35 \ No newline at end of file 13 \ No newline at end of file
src/main/resources/logback-local.properties renamed to src/main/resources/logback-dev.properties
src/main/resources/logback-run.properties 0 → 100644
  1 +log.config.path=d:/logs/local
  2 +log.config.filename=local_log
0 \ No newline at end of file 3 \ No newline at end of file
src/main/resources/logback-spring.xml
@@ -2,8 +2,8 @@ @@ -2,8 +2,8 @@
2 <!-- 60초마다 설정 파일의 변경을 확인 하여 변경시 갱신 --> 2 <!-- 60초마다 설정 파일의 변경을 확인 하여 변경시 갱신 -->
3 <configuration scan="true" scanPeriod="60 seconds"> 3 <configuration scan="true" scanPeriod="60 seconds">
4 <!--springProfile 태그를 사용하면 logback 설정 파일에서 복수개의 프로파일을 설정 --> 4 <!--springProfile 태그를 사용하면 logback 설정 파일에서 복수개의 프로파일을 설정 -->
5 - <springProfile name="local">  
6 - <property resource="logback-local.properties" /> 5 + <springProfile name="run">
  6 + <property resource="logback-run.properties" />
7 </springProfile> 7 </springProfile>
8 <springProfile name="dev"> 8 <springProfile name="dev">
9 <property resource="logback-dev.properties" /> 9 <property resource="logback-dev.properties" />