Tomcat保存处理

1,org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [H:\Project\ictech-site\ictech-web\target\ictech-web\WEB-INF\classes\config\applicationContext.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.getEnvironment()Lorg/springframework/core/env/Environment;

  NoSuchMethodError类问题多是jar包依赖引入问题。本次报错是冲突,注释spring-web,问题解决

<!--        <dependency>-->  
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-web</artifactId>-->
<!-- <version>5.1.2.RELEASE</version>-->
<!-- </dependency>-->


2.有xml,找不到或者不识别
org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern [/WEB-INF/config/spring*.xml
]; nested exception is java.io.FileNotFoundException: ServletContext resource [/WEB-INF/config/] cannot be resolved to URL because it does not exist

  解决办法:modules中的web resource directories选择错了,应该选web

 3.Artifact phm_bridge: Waiting for server connection to start artifact deployment... 
解决方案 换个tomcat
posted @   党王  阅读(52)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示