开发过程中遇到的异常及处理方法

------Mapped Statements collection already contains value for com.chong.model.AccountMapper.checkAccount

------错误原因是由于使用mybatis的AccountMapper.xml实现接口AccountMapper.java中的方法的时候的id有重复的值,比如

 <select id="checkAccount"  parameterType="com.chong.model.Account" resultType="int">中的checkAccount在一个xml文件中有两个这样的id,修改过来即可


猜你喜欢

转载自blog.csdn.net/qq_35578555/article/details/60140624