12 2021 档案
摘要:Mybatis使用MySQL中遇到的一个问题 | CodeDogluoliangdsga.github.io 解决办法: 登陆到mysql,分别执行以下两行命令: set global time_zone ='+08:00'; set time_zone ='+08:00';
阅读全文
摘要:配置文件db.properties url=jdbc:mysql://localhost:3306/dbtest name=root password=root maxActive=20 读取配置文件 <property name="url" value="${url}" /> <property
阅读全文
摘要:这是因为在mysql5.7以上启用了严格模式,临时关闭: 在Navicat中执行下面的语句,重启Navicat即可。 SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); 永久关闭: 在MySQL的配置文件
阅读全文

浙公网安备 33010602011771号