-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TIS平台自身的MySQL连接URL要加 useSSL=false 参数 #130
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在tis-web-config/config.properties文件中改用mysql数据库,如下
启动前后端服务,访问http://localhost:4200时后端服务会抛错,如下:
Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at sun.security.ssl.HandshakeContext.(HandshakeContext.java:171)
at sun.security.ssl.ClientHandshakeContext.(ClientHandshakeContext.java:103)
at sun.security.ssl.TransportContext.kickstart(TransportContext.java:220)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:437)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:415)
at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:186)
... 69 more
修复方法是在 tis-common-dao/src/main/java/com/qlangtech/tis/manage/spring/TISDataSourceFactory.java
改为
重新编译运行再访问就不会抛错了。
The text was updated successfully, but these errors were encountered: