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

执行到service时报错: Invalid bound statement (not found): com.example.demo.dao.UserInfoCeshiMapper.selectByPrimaryKey

帮忙看下,是配置的有问题吗?

https://img.mukewang.com/5c125ca80001754814320802.jpg

https://img4.mukewang.com/5c125d290001395d14390790.jpg


https://img2.mukewang.com/5c125d7e0001a55714390783.jpg

提问者:IT_huge 2018-12-13 21:27

个回答

  • IT_huge
    2018-12-14 09:53:19

    配置文件写错了 mybatis.mapper-location 少了个 s
    mybatis.mapper-location=classpath:mapping/*.xml --> mybatis.mapper-locations=classpath:mapping/*.xml