关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、3102411850 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 6339|回复: 2

[环境搭建] jeecg 3.8 start spring-config-p3.xml文件找不到

[复制链接]
发表于 2019-7-22 21:32:07 | 显示全部楼层 |阅读模式
信息: Initializing Spring root WebApplicationContext
[2019-07-22 21:26:23] [ERROR] [org.springframework.web.context.ContextLoader:331] Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:config/spring-config-p3.xml]
Offending resource: file [E:\apache-tomcat\webapps\zh\WEB-INF\classes\spring-mvc.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [config/spring-config-p3.xml]; nested exception is java.io.FileNotFoundException: class path resource [config/spring-config-p3.xml] cannot be opened because it does not exist



jeecg3.8环境搭建的xml问题.png
 楼主| 发表于 2019-7-22 21:37:29 | 显示全部楼层
本帖最后由 xilele 于 2019-7-22 21:41 编辑

src\main\resources\spring-mvc.xml有如下内容:
        <!-- Jeecg 插件开发  -->
        <bean class="org.jeecgframework.p3.core.utils.common.ApplicationContextUtil"></bean>
        <import resource="classpath:config/spring-config-p3.xml" />
项目启动publish时,无论如何都是:
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [config/spring-config-p3.xml]; nested exception is java.io.FileNotFoundException: class path resource [config/spring-config-p3.xml] cannot be opened because it does not exist


jeecg3.8环境搭建的xml问题2.png
 楼主| 发表于 2019-7-23 10:27:36 | 显示全部楼层
xilele 发表于 2019-7-22 21:37
src\main\resources\spring-mvc.xml有如下内容:
       
       

莫名其妙,突然好了!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表