Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #Sql连接
  2. ## WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL
  3. 解决办法: 需要在连接字符串中加上useSSL=false/true配置。
  4. 例:
  5. ```xml
  6. jdbc:mysql://localhost:3306/somebodyblog?characterEncoding=utf8&useSSL=false
  7. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement