问答详情
源自:4-3 商品模型模型--商品创建03

创建失败,原因为未知错误 [org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.miaoshaproject.dao.ItemDOMapper.insertSelective]

 .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.miaoshaproject.dao.ItemDOMapper.insertSelective]

创建失败,原因为未知错误

检查了xml,Mapper文件,但是还是没发现哪里有问题,求大神!

提问者:weixin_慕移动1502781 2022-04-25 09:21

个回答

  • weixin_慕移动1502781
    2022-04-25 09:39:19

    自己回答自己:一开始设置mybatis的时候写的

    mybatis.mapper-locations=classpath:mapping/UserDOMapper.xml,classpath:mapping/UserPasswordDOMapper.xml

    改成了


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