Error creating bean with name 'sqlSessionFactory' defined in class path resource
来源:5-14 spring、springmvc配置实操
SuccessorSocialism
2018-05-01
老师,在applicationContext-datasource.xml读取到datasource.properties后点击run之后,出现下面的错误
写回答
2回答
-
SuccessorSocialism
提问者
2018-05-01
01-May-2018 00:00:07.098 严重 [RMI TCP Connection(2)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext-datasource.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [/usr/local/src/apache-tomcat-9.0.7/webapps/ROOT/WEB-INF/classes/mappers/PayInfoMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.mmall.dao.PayInfoMapper.BaseResultMap
012018-05-06 -
Geely
2018-05-01
你好亲爱的同学,箭头右侧的异常能发全一些么 可以在
这里选择一个排版来看~~我感觉关键异常需要更多的异常信息,我来帮你分析一下。
012018-05-01
相似问题