我在数据库表中添加一个字段,然后在idea中使用mybatis-generator 插件重新生成类,resource下mapper文件会报错!怎么解决
来源:6-2 登录功能开发

以yu之名丶
2017-05-18
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 [D:\Software\Tomcat\tomcat7\apache-tomcat-7.0.75\webapps\ROOT\WEB-INF\classes\mappers\tlasuserMapper.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.vistar.dao.tlasuserMapper.BaseResultMap
2回答
-
hi 同学你好
ause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.vistar.dao.tlasuserMapper.BaseResultMap
这个提示很明显啦。哈哈哈 你重复生成了,检查一下这个mapper哟
012017-05-23 -
Geely
2017-05-18
生成之前记得把原来的删除哟
012017-05-24
相似问题