错误信息:
1.Servlet.service() for servlet [springmvc] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.chrome.mapper.UserMapper.register] with root cause
2.org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.chrome.mapper.UserMapper.register
解决办法:
错误解决方案之:1.接口名与Mybatis的映射文件名一定要一模一样。
dao接口与xml的文件名不一致,也就是mapper方法接口要与xml文件名一样