码迷,mamicode.com
首页 > 移动开发 > 详细

Spring Boot 引入org.springframework.boot.SpringApplication出错

时间:2018-03-03 21:27:36      阅读:11344      评论:0      收藏:0      [点我收藏+]

标签:cat   clean   app   osi   users   class   mave   新版本   epo   

今天新建的一个spring boot maven项目,

写启动类时发现无法引入SpringApplication,

经查原来是冲突了,我早些时候用了比较低版本的spring boot创建了项目

,导致电脑用户文件夹下有旧版本的配置,现在用新的版本导致了冲突

,那么只要删除冲突的老版本,文件夹地址

C:\Users\hanfuqingshi\.m2\repository\org\springframework\boot\spring-boot

下的2.0.0.RELEASE为新版本,而其它的为老版本,删除老版本后,

在IDE 项目右键Run As - maven clean 在maven install

,最后maven - update project即可。

Spring Boot 引入org.springframework.boot.SpringApplication出错

标签:cat   clean   app   osi   users   class   mave   新版本   epo   

原文地址:https://www.cnblogs.com/mrcln/p/8502816.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!