问答详情
源自:2-4 Mybatis自动生成器使用方式

最后一步selectByPrimaryKey方法出错

ERROR 11992 --- [nio-8090-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : 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.miaoshaproject.dao.UserDOMapper.selectByPrimaryKey] with root cause

https://img1.mukewang.com/5c6f75340001959807930270.jpg

我的selectByPrimaryKey方法也是有的 

https://img3.mukewang.com/5c6f75a30001d00a10240268.jpg

提问者:further猿 2019-02-22 12:08

个回答

  • qq_小坏狐狸
    2020-01-30 16:52:02

    解决了吗?

  • cfg
    2019-04-02 04:49:16

    解决了吗我也是这样但是路径是对的


  • 南极亚拉3947483
    2019-02-22 18:56:18

    mybatis.mapper-locations=classpath:mapping/*.xml

    我是这里错了