SpringBoot 2.0 web应用无日志输出问题

如果你使用springboot 2.0或以上版本,当依赖中包含commons-logging时,程序会出现貌似无法启动的问题,表现为控制台没有输出xxx started。其实这时候程序是正常启动的,功能正常,只是没日志输出而已。解决方法为找出引入commons-logging的依赖,排除即可。

github issue: https://github.com/spring-projects/spring-boot/issues/13047#issuecomment-386543963

stackoverflow: https://stackoverflow.com/questions/49917449/cannot-start-tomcat-server-when-having-spring-boot-starter-test-dependency-in

posted @ 2018-05-04 17:13  司青  阅读(47)  评论(0)    收藏  举报  来源