请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答

2回答

Mybatis没有映射到,找不到对应的sql,检查一下吧,建议和源码部分比对看看是不是写错方法名之类的

0 回复 有任何疑惑可以回复我~
  • 提问者 慕侠2277836 #1
    非常感谢!
    回复 有任何疑惑可以回复我~ 2019-09-20 23:03:38
提问者 慕侠2277836 2019-09-20 22:36:40

我直接将你的代码全盘覆盖取代我的代码,结果还是500报错,但是已经将username和password成功insert到数据表中去了,请问下面代码报错意思是什么?

  • {

  •  "timestamp": 1568989641806,

  •  "status": 500,  

  • "error": "Internal Server Error",  "exception": "org.springframework.data.redis.RedisConnectionFailureException",

  •  "message": "Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool",  "path": "/regist"}

https://img1.sycdn.imooc.com/szimg/5d84e3810856cb1707720221.jpg

https://img1.sycdn.imooc.com/szimg/5d84e3810861cd4509610894.jpg


0 回复 有任何疑惑可以回复我~
  • Redis没有连接,请确保redis安装成功,并且启动成功。项目可以正常连接。这样就可以了
    回复 有任何疑惑可以回复我~ 2019-09-20 23:11:18
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信