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.
在配置好所有东西,页面访问数据库的时候报错。
报错原因:大概就是Mysql的版本太高,JDBC的版本太低导致的报错。
解决办法:在jdbc:mysql://localhost:3306/user?useUnicode=true&characterEncoding=utf-8 后面加上&useSSL=true 就可以正常连接了。
SpringBoot踩坑(1)
最新推荐文章于 2023-05-14 14:41:05 发布