Spring Boot报错:Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
近期学校在学习Java ee,实验要求基于Spring Boot + JSP开发图书管理平台。用idea编写时经常遇到各种各样的问题,都无法好好得到解决。今天便遇见启动Tomcat出错的问题。
查阅网上资料,尝试了各种方法都不能解决我的问题。最后通过修改json jar包的版本,使其成为更高版本,最后问题得以解决,Spring Boot成功启动!
报错:
View Code
解决:
对应pom.xml:
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.11.0</version>
</dependency>