Mybatis的参数配置

Mybatis的参数配置

1.mysql的参数配置

曾经的propertis

driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/mybatis?useSSL=true&useUnicode=true&characterEncoding=UTF-8
username=mysql账号
password=mysql密码

突然有一天插入中文乱码,经过两天的磨

现在的properties

jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/ssmbuild?useSSL=true&&useUnicode=true&&characterEncoding=UTF-8&&serverTimezone=Asia/Shanghai
jdbc.username=mysql账号
jdbc.password=mysql密码

希望可以给大家提供帮助!

刚刚参加工作,很有很多不懂不会的,发现错误,欢迎指正,谢谢!
原文地址:https://www.cnblogs.com/xd-study/p/13722583.html