nested exception is org.apache.ibatis.binding.BindingException: Invalid boun


 

 Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.southwind.mmall002.service.UserService.getOne] with root cause

这些错误呢,是因为对应的mapper类的方法没有实现,也就是说,mapper.xml文件没有加载到或者加载错误。通过反复检查错误发现自己注解写错了。@MapperScan("com.southwind,mmall002.mapper")改为@MapperScan("com.southwind.mmall002.mapper")将逗号改成点,低级错误。。。。。。

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM