10 2021 档案
摘要:1. 连接数据库 mysql -hlocalhost -uroot -p 2. 查看当前时区 show variables like'%time_zone'; 显示 SYSTEM,表示当前没有设置时区 3. 设置时区 set global time_zone = '+8:00'; 4. 再次查看时区
阅读全文
摘要:1. 从 XML 中构建 SqlSessionFactory String resource = "org/mybatis/example/mybatis-config.xml"; InputStream inputStream = Resources.getResourceAsStream(res
阅读全文