老师你好 在网页访问 就是这样

老师你好 在网页访问 就是这样

我把老师初始代码都替换过 还是报这个错误 是配置问题吗


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


正在回答

登陆购买课程后可参与讨论,去登陆

1回答

同学你好,

1、同学检查一下是否配置了mapper-locations,如果没有,建议同学配置一下。如下;

http://img1.sycdn.imooc.com//climg/6007910c0963eda709110311.jpg

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

http://img1.sycdn.imooc.com//climg/60079166090cc37e08090221.jpg

如果问题没有解决,建议同学贴一下UserMapper.xml,UserMapper.java和其他相关代码,老师测试一下。

祝学习愉快~

  • 孤月华 提问者 #1

    老师你好,最后发现,好像是IDEA问题    重新启动后 正常了,感谢老师的回复

    2021-01-20 10:16:50
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师