老师你好 在网页访问 就是这样
我把老师初始代码都替换过 还是报这个错误 是配置问题吗
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Jan 19 21:02:17 CST 2021
There was an unexpected error (type=Internal Server Error, status=500).
Invalid bound statement (not found):
com.imooc.mall.model.dao.UserMapper.selectByPrimaryKey
33
收起
正在回答
1回答
同学你好,
1、同学检查一下是否配置了mapper-locations,如果没有,建议同学配置一下。如下;

2、同学看一下UserMapper.xml中有没有selectByPrimaryKey,如下:

如果问题没有解决,建议同学贴一下UserMapper.xml,UserMapper.java和其他相关代码,老师测试一下。
祝学习愉快~
java工程师2020版
- 参与学习 人
- 提交作业 9410 份
- 解答问题 16556 个
综合就业常年第一,编程排行常年霸榜,无需脱产即可学习,北上广深月薪过万 无论你是未就业的学生还是想转行的在职人员,不需要基础,只要你有梦想,想高薪
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星