前言
springboot日常使用中有一些兼容性的错误,有时候没遇见过会让人无法摸到头脑,这里记录一些问题,后续不定期补充
1、mysql
1.1 Received fatal alert: protocol_version
因为更换了数据源才发现并记录,之前用的是mariadb8正常,换了docker mysql8就报错,不过为了减少无法定位的错建议采用完整的url连接串。
1
2
3
4
5
|
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet successfully received from the server was 6 milliseconds ago. The last packet sent successfully to the server was 5 milliseconds ago.
Caused by: javax.net.ssl.SSLException: Received fatal alert: protocol_version
|
原因:
spring.database.url连接串需要增加useSSL=false
……
阅读全文