SpringBoot项目创建报:java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication错误的解决方案
来源:互联网 发布:淘宝卖家手机号采集 编辑:程序博客网 时间:2024/06/03 16:44
第一次创建SpringBoot项目结果出现了不少错误,其他错误都通过百度的方式得到解决,唯独这个错误困扰我很久了,而且百度上没有对于这种错误的解决方案。
所以给出这种错误的解决方案:
虽然明显知道是jar包问题,不管怎么clean怎么的还是没能解决。鼓捣了很久没结果,stackoverflow什么的也翻遍了,依然没找到结果,但是偶然对比一个Spring boot项目是可以启动的,发现了他们的区别,发现父项目配置的版本不一致,可以启动的是1.3.5版本的,不能启动的是1.4.0版本,果断进入C:\Users\anxpp\.m2\repository\org\springframework\boot\spring-boot删除了1.4.0版本的整个目录,maven clean了一下重新下载的依赖,启动就正常了。因为网上的资料都没能解决这个问题,所以记录一下。By the way,其实很多时候一些错误(常为ClassNotFound),都可以使用这种方法。
阅读全文
1 0
- SpringBoot项目创建报:java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication错误的解决方案
- java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication
- java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误解决方案
- java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener错误解决方案
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误解决方案
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误解决方案
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误解决方案
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误解决方案
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误解决方案
- maven项目 报:java.lang.ClassNotFoundException: org.springframework.web.context...
- maven创建spring项目之后,启动报错java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoade
- maven创建spring项目之后,启动报错java.lang.ClassNotFoundException: org.springframework.web.**.**
- maven创建spring项目之后,启动报错java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoade
- Java---当由Maven搭建的Web项目报java.lang.ClassNotFoundException: org.springframework.web异常
- Eclipse报错java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener解决方案
- Eclipse报java.lang.ClassNotFoundException: org.springframework.web.filter.CharacterEncodingFilter错误
- maven web 项目中启动报错java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener
- Codeforces 804D Expected diameter of a tree(树的直径)
- Linux之Xampp外网访问不了
- mysql 中 all any some 用法
- 数据结构的概述
- 巧用插件及代码实现VIP视频源码分析观看(基于油猴插件及各大接口网站)【PC以及安卓】
- SpringBoot项目创建报:java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication错误的解决方案
- java中的匿名内部类总结
- 增长率问题
- chrom插件DHC和火狐HttpRequester插件教程
- php读取目录及子目录下所有文件名的方法
- springmvc4整合AJAX使用@ResponseBody注解返回JSON数据格式
- 汉诺塔递归算法
- 学习C语言的第3天
- 转发和重定向的区别