swagger2测试500

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

可乐加冰ii

2020-02-19

图片描述“nested exception is org.apache.ibatis.exceptions.PersistenceException:
\r\n### Error querying database.
Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
\r\n### The error may exist in com/hcm/mapper/UserMapper.java (best guess)
\r\n### The error may involve com.hcm.mapper.UserMapper.selectOne
\r\n### The error occurred while executing a query
\r\n### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.”,
按照视频写的

写回答

1回答

风间影月

2020-02-19

Jdbc有问题,数据库配置不对,检查一下看看

1
6
风间影月
嗯 卸载了装
2020-02-19
共6条回复

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

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

2613 学习 · 1951 问题

查看课程