项目场景和问题描述:
SSM整合的项目中,能够正常运行,在多加一个dao层中的映射文件后,报错如下
12-Jan-2024 21:55:50.887 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
12-Jan-2024 21:55:50.892 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/javaee3_war] startup failed due to previous errors
解决方案:
在尝试了很多方法都行不通,之前运行好好的突然就报错;
想到了我与之前的变化就是多写了一个dao层的方法,然后想起来在配置时不确定是否配对了
错误的在applicationContext.xml配置如下,:
修改后:
项目就可以成功运行了!