如果你使用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
网友评论