ssm之mapper异常 Result Maps collection already contains value for com.ssj.mapper.UserMapper 和 Type interface com.ssj.mapper.UserMapper is already known to the MapperRegistry.
异常一:Result Maps collection already contains value for com.ssj.mapper.XXXMapper
原因分析:XXXmapper.xml文件中出现了ID相同的值;
可能导致因素: 原逆向工程生成的文件未删除,又执行了一次逆向工程.
异常二:Type interface com.ssj.mapper.UserMapper is already known to the MapperRegistry.
原因分析:mybatisconfig.xml文件中配置了重复的 映射 mapper resource配置删除即可