在跟着狂神整合SSM时遇到的错误,在数据库database.properties配置时。
解决:
将useSSL设置为false;因为useSSL是进行服务器认证的,不建议在没有服务器的情况下使用,建议设置为false。在本地进行测试的话,就直接设置为false。
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/ssmbuild?useSSL=false&useUnicode=true&characterEncoding=utf8
jdbc.username=root
jdbc.password=123456