java 错误集合

1  2019-12-05 21:24:24.564 [main] ERROR org.apache.tomcat.jdbc.pool.ConnectionPool - Unable to create initial connections of pool.

解决:配置文件中

useSSL改成false
spring.datasource.url=jdbc:mysql://localhost:3306/upgrade?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false

2 :com.netflix.discovery.DiscoveryClient - DiscoveryClient_TAL-PX-SOFTWARE/DESKTOP-G4144TO:tal-px-software:9321 - was unable to refresh its cache! status = Cannot execute request on any known server com.netflix.discovery.shared.transport.TransportException: 

解决:
原因: 启动的时候自己注册自己,这个问题可以忽略,但是觉得不好看的话,下面是解决方案。
 
解决:client: 
    register-with-eureka: false 
    fetch-registry: false
https://blog.csdn.net/zdyueguanyun/article/details/78088426












原文地址:https://www.cnblogs.com/wsnan/p/11992623.html