[置顶] mybatis返回的日期与mysql不一致

摘要: 配置文件中数据库连接加上 &serverTimezone=Asia/Shanghai spring.datasource.url=jdbc:mysql://localhost:3306/zdsq?useUnicode=true&characterEncoding=UTF-8&serverTimezo 阅读全文

posted @ 2020-05-19 10:59 蒙奇奇小眼睛 阅读(439) 评论(0) 推荐(0) 编辑

2020年5月17日

MySql添加索引

摘要: CREATE INDEX index_name ON table_name(id); 阅读全文

posted @ 2020-05-17 15:56 蒙奇奇小眼睛 阅读(210) 评论(0) 推荐(0) 编辑

Springboot+Redis缓存(windows下配置)

摘要: 下载redis免安装压缩包,解压 1.cmd命令窗口进入当前路径下,执行启动命令: H: cd H:\Redis-x64-3.2.100 redis-server redis.windows.conf 一、使用随机默认的数据库方式(使用springboot2.2.7+redis3.1.0) 1..p 阅读全文

posted @ 2020-05-17 11:59 蒙奇奇小眼睛 阅读(304) 评论(0) 推荐(0) 编辑

springboot+jsp拦截器配置

摘要: /* 是拦截所有的文件夹,不包含子文件夹 /** 是拦截所有的文件夹及里面的子文件夹 1.创建过滤器filter package com.gyt.screen.filter; import com.gyt.screen.domain.Admin; import org.springframework 阅读全文

posted @ 2020-05-17 10:52 蒙奇奇小眼睛 阅读(628) 评论(0) 推荐(0) 编辑

2016年10月11日

JAVA比较两个日期大小

摘要: import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; /** * * @author hp */ public class test { public static void main(String args[]) { int i= compare_d... 阅读全文

posted @ 2016-10-11 18:39 蒙奇奇小眼睛 阅读(165) 评论(0) 推荐(0) 编辑

导航