maven项目导入:Failed to read candidate component class: file
来源:互联网 发布:2014十大网络用语 编辑:程序博客网 时间:2024/05/21 18:39
导入项目:
mvaen -update
build path :修改jre环境,跟本地匹配
修改java compiler 修改编译环境为本地的环境修改project Facets java 改为本地,Dynamic 改为web.xml中的版本。要不然你的所有maven依赖,都没问题。
但项目一直报小红叉。
maven clean
maven install 下载mvaen pom.xml中的依赖到本地
这里,检查pom.xml中是否配置了,对jdk的配置
mavend的配置文件中,conf目录下的setting.xml中的 jdk的配置和本地jdk 一致,否则。mvaen update以后,jdk会回到maven配置文件中的版本
启动报错:
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file
[E:\gold_work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\gold_public\WEB-仔细检查过web.xml中关于spring配置引入,spring-mvc配置引入都没有问题,
以及spring配置文件读取方式,包括监听参数配置也是对的。
我的项目是java1.7的环境编译的,配置spring是3.0的,我自己本地的环境是java1.8的环境。
把java环境改为 java1.7,项目正常启动。
spring官网说了,要使用java8,只支持spring 4.X以上版本,而spring的使用最低java要求java5及以上,
如果出现例外,那就例外说了,比如一开始spring 3.1就可以在java8上编译。
参考文献:http://blog.csdn.net/yhl_jxy/article/details/52999571
阅读全文
0 0
- maven项目导入:Failed to read candidate component class: file
- 解决:“ Failed to read candidate component class: file”问题
- Failed to read candidate component class
- Failed to read candidate component class
- BeanDefinitionStoreException Failed to read candidate component class
- Failed to read candidate component class
- Failed to read candidate component class
- failed to read candidate component class
- Failed to read candidate component class
- Failed to read candidate component class
- Failed to read candidate component class
- Failed to read candidate component class
- Failed to read candidate component class
- Failed to read candidate component class
- Failed to read candidate component class
- Failed to read candidate component class
- Failed to read candidate component class
- Failed to read candidate component class
- 讲一些对于页面布局以及html的理解
- LeetCode Two Sum时间复杂度O(n)解法尝试版本1
- listener.ora
- js模板引擎artTemplate快速上手
- 第26章 站在巨人肩膀上——游戏引擎技术导论
- maven项目导入:Failed to read candidate component class: file
- 最近有朋友问我 什么平台的BTC 可以用FIX API 平台不错的请推荐谢谢
- Python数据可视化(matplotlib库)
- React click toggle
- Java反射
- 1029. 旧键盘(20)
- Unable to load class 'org.gradle.api.internal.component.Usage'
- 段错误之一记录(11.12课程代码出现的问题)
- 用Prismjs给自己的博客文章增加代码高亮功能