小编Ais*_*til的帖子

将 jdk 8 迁移到 jdk 11,mysql 抛出 SSL 错误

mysql 连接器版本是 5.1.42,ds.properties.j2 中的连接器字符串是:

ds.datasource.name=coreDS
ds.datasource.driver=com.mysql.jdbc.Driver
ds.datasource.url=jdbc:mysql://{{ core_db_host }}:{{ core_db_port }}/{{ core_db_schema }}?useSSl=true&requireSSL=true&verifyServerCertificate=false
ds.datasource.username={{ core_db_user }}
ds.datasource.password={{ core_db_password }}
Run Code Online (Sandbox Code Playgroud)

出现以下错误:

> TASK [jetty : Jetty | Report errors in
> /opt/jetty/base/default/logs/error.log]
> **************************************************** ok: [localhost] => {
>     "msg": "ERRORS found in /opt/jetty/base/default/logs/error.log: 2020-07-17 11:54:44,652 ERROR [com.zaxxer.hikari.pool.HikariPool]
> (main) coreDS - Exception during pool initialization.\n2020-07-17
> 11:54:44,659 ERROR [org.springframework.web.context.ContextLoader]
> (main) Context initialization failed" } Caused by:
> javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol
> is disabled or cipher suites are …
Run Code Online (Sandbox Code Playgroud)

java mysql

5
推荐指数
1
解决办法
4295
查看次数

标签 统计

java ×1

mysql ×1