springboot启动异常

异常的信息如下: 

17:42:49.208 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : []
17:42:49.212 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Excluded patterns for restart : [/spring-boot-actuator/target/classes/, /spring-boot-devtools/target/classes/, /spring-boot/target/classes/, /spring-boot-starter-[\w-]+/, /spring-boot-autoconfigure/target/classes/, /spring-boot-starter/target/classes/]
17:42:49.213 [main] DEBUG org.springframework.boot.devtools.restart.ChangeableUrls - Matching URLs for reloading : [file:/E:/workerspace/springboot/m2018-count-json1/target/classes/]

 

日志的配置

  1. logging.level.root=info
  2. logging.level.org.springframework.web=DEBUG
  3. logging.file=e:\\logs\\m2018-count-json1.log
  4. logging.file.max-size=50M
  5. logging.file.max-history=30
  6. logging.level.cn.com.jrj.counter.*=DEBUG

1、当加上第三行时,就会报上面的那个错误信息,当去掉第三行就不会出错!!!

2、第二种情况:

在把pom里面的

     <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
        </dependency> 

这个去掉之后,springboot起不来,而且还没有日志报错的日志

这个问题解决了,主需要把logging.file.max-size=50M改成logging.file.max-size=50这个就可以了,或者把

  1. logging.file.max-size=50M
  2. logging.file.max-history=30
  3. 这两个都去掉就可以了

大神求解!!!急

猜你喜欢

转载自blog.csdn.net/wojiao228925661/article/details/81541712