报错详情
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
解决
yml配置文件添加两行配置
spring.datasource.druid.test-on-borrow=true
spring.datasource.druid.test-while-idle=true