启动springboot后,运行swagger2时500报错。

来源:5-7 swagger2的使用与接口测试

慕侠2277836

2019-09-19

图片描述

写回答

2回答

风间影月

2019-09-19

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

0
1
慕侠2277836
非常感谢!
2019-09-20
共1条回复

慕侠2277836

提问者

2019-09-20

我直接将你的代码全盘覆盖取代我的代码,结果还是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"}

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

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


0
1
风间影月
Redis没有连接,请确保redis安装成功,并且启动成功。项目可以正常连接。这样就可以了
2019-09-20
共1条回复

Spring Boot短视频小程序开发 全栈式实战项目

一门课程带你搞定短视频小程序全栈开发,毕业设计之利器!

2613 学习 · 1951 问题

查看课程