mybatis org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

I once made a similar mistake which turned out that the directories were incorrect.
If the UserMapper's namespace is com.mybatisdemo.mappers.UserMapper, make sure mapper-locations is src/resources/com/mybatisdemo/mappers/.
Sometimes we might create a directory named com.mybatisdemo.mappers, then its location turns out to be src/resources/com.mybatisdemo.mappers which is wrong.

posted @   雨花梦  阅读(270)  评论(1编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示