项目打war包后忘了修改pom中的配置,启动项目控制台报错: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
org.springframework.boot spring-boot-starter-web
ps: 正常启动如上,打war包需要将上面注释的配置放开。

项目打war包后忘了修改pom中的配置,启动项目控制台报错: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
org.springframework.boot spring-boot-starter-web
ps: 正常启动如上,打war包需要将上面注释的配置放开。