Spring Boot中启动Tomcat报错Error starting ApplicationContext. To display the conditions report re-run you

Spring Boot中1.5.6所需要的依赖和2.1.0所需要的依赖是不一样的,如果使用同版本的依赖会导致版本冲突

报错信息:Spring Boot中启动Tomcat报错Error starting ApplicationContext. To display the conditions report re-run you_第1张图片

报错原因:版本冲突

Spring Boot1.5.6所需要的基础依赖:

        
		org.springframework.boot
		spring-boot-starter-parent
		
		1.5.6.RELEASE
		 
	

	
		UTF-8
		UTF-8
		1.8
	

	
		
			org.springframework.boot
			spring-boot-starter-jdbc
		
		
			org.mybatis.spring.boot
			mybatis-spring-boot-starter
			1.3.0
		
		
			org.springframework.boot
			spring-boot-starter-thymeleaf
		
		
			org.springframework.boot
			spring-boot-starter-web
		

		
			org.springframework.boot
			spring-boot-starter-test
			test
		
		
			mysql
			mysql-connector-java
			5.1.35
		
		
		
			com.alibaba
			druid
			1.0.11
		
		
			com.fasterxml.jackson.core
			jackson-core
		
		
			com.fasterxml.jackson.core
			jackson-databind
		
		
			com.fasterxml.jackson.datatype
			jackson-datatype-joda
		
		
			com.fasterxml.jackson.module
			jackson-module-parameter-names
		
		
		
			com.github.pagehelper
			pagehelper-spring-boot-starter
			1.1.2
		
		
		
			com.alibaba
			druid-spring-boot-starter
			1.1.0
		
		
		
			net.sf.mpxj
			mpxj
			7.1.0
		
	

Spring Boot 2.1.0需要的依赖:

        
		org.springframework.boot
		spring-boot-starter-parent
		2.1.0.RELEASE
		 
	

	
		UTF-8
		UTF-8
		1.8
	
        
		
			org.springframework.boot
			spring-boot-starter-jdbc
		
		
			org.mybatis.spring.boot
			mybatis-spring-boot-starter
			1.3.2
		
		
			org.springframework.boot
			spring-boot-starter-thymeleaf
		

		
			org.apache.commons
			commons-lang3
			3.4
		

		
			org.springframework.boot
			spring-boot-starter-web
		

		
			org.springframework.boot
			spring-boot-starter-test
			test
		
		
			mysql
			mysql-connector-java
		


		
			com.fasterxml.jackson.core
			jackson-core
		
		
			com.fasterxml.jackson.core
			jackson-databind
		
		
			com.fasterxml.jackson.datatype
			jackson-datatype-joda
		
		
			com.fasterxml.jackson.module
			jackson-module-parameter-names
		
		
		
			com.github.pagehelper
			pagehelper-spring-boot-starter
			1.2.5
		
		
		
			com.alibaba
			druid-spring-boot-starter
			1.1.0
		
	

 

你可能感兴趣的:(Spring,boot)