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有问题,数据库配置不对,检查一下看看
162020-02-19
相似问题