摘要: 在对象对应字段上添加@TableField(updateStrategy = FieldStrategy.IGNORED) 注解 阅读全文
posted @ 2023-03-28 21:25 336土豆快跑 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 在项目开发过程中出现String类型如1867/06/06通过SimpleDateFormate转日期时是CDT时间而不是CST时间, 连接数据库的时区是Asia/Shanghai,存入数据库的时间是1867/06/06,但是后台查sql转成Date类型后还是CDT时间,传到前端就自动变成1867- 阅读全文
posted @ 2023-03-28 21:21 336土豆快跑 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 批量修改表字段的字符集 ALTER TABLE table_name CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; 查看字段的字符集 select * from information_schema.columns wher 阅读全文
posted @ 2022-06-22 15:25 336土豆快跑 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 前端笔记 加载顺序 vue的入口都是从index.html开始,所以项目页面入口在public/index.html vue脚本的入口从main.js开始,main.js有vue的初始化代码 new Vue({ el: '#app', router, store, render: h => h(Ap 阅读全文
posted @ 2022-06-20 17:53 336土豆快跑 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 创建用户 CREATE USER 'testUser'@'%' IDENTIFIED BY 'testUser'; 授权 GRANT SELECT, INSERT, UPDATE, REFERENCES, DELETE, CREATE, DROP, ALTER, INDEX, TRIGGER, CR 阅读全文
posted @ 2022-06-10 10:20 336土豆快跑 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 阿里云禁用25端口 因此改用465端口 Properties prop = new Properties(); prop.setProperty("mail.host", "smtp.qq.com");// 设置服务器地址 prop.setProperty("mail.transport.proto 阅读全文
posted @ 2022-04-18 13:56 336土豆快跑 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 重启docker服务 systemctl restart docker docker启动所有服务 docker start $(docker ps -a | awk '{ print $1}' | tail -n +2) 设置进程在启动时 docker update 容器名 --restart=al 阅读全文
posted @ 2022-03-22 10:40 336土豆快跑 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 部分代码: --协议配置表 DECLARE--游标声明 MONTH_NUM int ( 8 ); i INT ( 11 ); cursor cur_info IS --select语句 SELECT t.cont_no, t.sign_date, t.sign_user, t.sex, t.pbk_ 阅读全文
posted @ 2022-02-16 16:20 336土豆快跑 阅读(24) 评论(0) 推荐(0) 编辑
摘要: -- 备份 CREATE TABLE t_lottery_prize_20220209 LIKE t_lottery_prize; INSERT INTO t_lottery_prize_20220209 SELECT * FROM t_lottery_prize; 阅读全文
posted @ 2022-02-16 16:17 336土豆快跑 阅读(40) 评论(0) 推荐(0) 编辑
摘要: MyISAM引擎的表不支持事务操作; 更改InnoDB引擎方式 ALTER TABLE 表名 ENGINE=InnoDB; 阅读全文
posted @ 2022-01-20 20:50 336土豆快跑 阅读(28) 评论(0) 推荐(0) 编辑