Spring Cloud启动jdbc报错
1、Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
2、org.springframework.orm.jpa.JpaSystemException: Unable to acquire JDBC Connection; nested exception is org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection
3、com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect
4、com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
解决方案:
将mysql maven依赖在pom文件中替换为一下版本,即可解决。