“Invalid bound statement (not found): com.example.dao.UserDao.getUserById”
问题原因:dao层定义了public User getUserById(int id),但没有给其添加@Select注解,所以当业务层注入dao调用该接口来重写业务层的接口时没有sql语句可以执行
解决方案:getUserById(int id)方法上添加@Select注解
“Invalid bound statement (not found): com.example.dao.UserDao.getUserById”
问题原因:dao层定义了public User getUserById(int id),但没有给其添加@Select注解,所以当业务层注入dao调用该接口来重写业务层的接口时没有sql语句可以执行
解决方案:getUserById(int id)方法上添加@Select注解
1826
2万+
5万+
1669

被折叠的 条评论
为什么被折叠?