SSM整合,使用逆向工程报错
报错代码
严重: Error while adding the mapper ‘interface cn.offcn.mapper.EmployeeMapper’ to configuration.
org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is ‘cn/offcn/mapper/EmployeeMapper.xml’. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for cn.offcn.mapper.EmployeeMapper.BaseResultMap
at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:120)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:92)
报错原因
逆向工程执行多次,已经生成的接口对应 xml 文件并不会被覆盖掉!!!!!!!!!检查出重复的删除。