- Caused by: java.lang.IllegalArgu
- Caused by: java.lang.IllegalArgu
- Caused by: java.lang.IllegalArgu
- Caused by: java.lang.IllegalArgu
- Caused by: java.lang.IllegalArgu
- Caused by: java.lang.IllegalArgu
- Caused by: java.lang.IllegalArgu
- Caused by: java.lang.IllegalArgu
- Caused by: java.lang.IllegalArgu
- Caused by: java.lang.IllegalArgu
Caused by: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.xinyue.mapper.UserMapper.queryUserById
出现问题的原因
- 在xml中存在id冲突
- 在xml中配置了sql语句 同时又在java中以注解的形式查询了一次
- 究其根本是其存储是以kv形式存储的上述两种问题都会导致k相同
解决方法
分别检查这两处看是否存在上述原因
网友评论