spring整合mybatis错误:class path resource [config/spring/springmvc.xml] cannot be opened because it does
2018-03-19 10:39
519 查看
错误:class path resource [config/spring/springmvc.xml] cannot be opened because it does not exist
错误原因:找不到我的springmvc.xml,在下面web.xml中是我引用路径,网上找到问题classpath指向路径不是resource路径,所以一直找不到我的xml文件, classpath:到你的class路径中查找文件, classpath*:不仅包含class的路径,还包括jar文件中(class路径)进行查找 解决办法:在classpath后面在上“*” 可解决问题,“classpath*:springmvc.xml”
错误原因:找不到我的springmvc.xml,在下面web.xml中是我引用路径,网上找到问题classpath指向路径不是resource路径,所以一直找不到我的xml文件, classpath:到你的class路径中查找文件, classpath*:不仅包含class的路径,还包括jar文件中(class路径)进行查找 解决办法:在classpath后面在上“*” 可解决问题,“classpath*:springmvc.xml”
相关文章推荐
- class path resource [springmvc.xml] cannot be opened because it does not exist
- class path resource [spring-mvc.xml] cannot be opened because it does not exist
- class path resource [src/main/resources/conf/spring-mybatis.xml] cannot be opened because it does no
- spring junit class path resource [ /com/config/spring-core.xml] cannot be opened because it does not exist
- 在进行maven+spring+struts+hibernate整合时发生class path resource [spring.xml] cannot be opened because it do
- Spring问题:class path resource [org.spring/applicationContext.xml] cannot be opened because it does no
- class path resource [spring.xml] cannot be opened because it does not exist
- java.io.FileNotFoundException: class path resource [spring.xml] cannot be opened because it does not
- IDEA中Spring配置错误:class path resource [.xml] cannot be opened because it does not exist
- IDEA中Spring配置错误:class path resource [.xml] cannot be opened because it does not exist
- IDEA中Spring配置错误:class path resource [.xml] cannot be opened because it does not exist
- class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist
- IDEA中Spring配置错误:class path resource [.xml] cannot be opened because it does not exist
- IDEA中Spring配置错误:class path resource [.xml] cannot be opened because it does not exist
- class path resource [applicationContext.xml] cannot be opened because it does not exist
- class path resource [spring.xml] cannot be opened because it does no exist;
- IDEA中Spring配置错误:class path resource [.xml] cannot be opened because it does not exist
- IDEA中Spring配置错误:class path resource [.xml] cannot be opened because it does not exist
- IDEA中Spring配置错误:class path resource [.xml] cannot be opened because it does not exist
- class path resource [spring/applicationContext.xml] cannot be opened because it does not exist