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

打开界面,500错误,Invalid bound statement (not found): com.miaoshaproject.service.UserService.getUserById

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri Sep 06 14:07:33 CST 2019

There was an unexpected error (type=Internal Server Error, status=500).

Invalid bound statement (not found): com.miaoshaproject.service.UserService.getUserById


提问者:慕哥2744514 2019-09-06 14:24

个回答

  • 慕移动830526
    2019-09-16 23:37:07

    这个错误提示是说maper绑定xml失败,看下你spring配置文件的mybatis.mapperLocations=classpath:mapping/*.xml属性所指的值是否是xml文件所在位置