摘要: 当数据库时区设置为国际时区时 jdbc-url 中添加以下配置 serverTimezone=GMT%2B0 Java服务中设置东八区 TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai")); 使用mybatis红的mapper.xml 阅读全文
posted @ 2024-04-26 17:07 爱,诗意永存 阅读(7) 评论(0) 推荐(0) 编辑
摘要: spring 阅读全文
posted @ 2023-12-29 15:07 爱,诗意永存 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 异常堆栈信息: 1 LEAK: ByteBuf.release() was not called before it's garbage-collected. See https://netty.io/wiki/reference-counted-objects.html for more info 阅读全文
posted @ 2023-07-28 15:59 爱,诗意永存 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 1、下载nacos 本操作步骤使用的是稳定版本 2.1.1 下载地址:https://github.com/alibaba/nacos/releases/tag/2.1.1 百度网盘下载地址:链接: https://pan.baidu.com/s/1w0CUkIpDJ8jI3N2FH3hKWw?pw 阅读全文
posted @ 2023-07-24 15:15 爱,诗意永存 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1 2 public static String toHex(String text) throws Exception { 3 4 //将字符串转为GB2312数组 5 byte[] arr = text.getBytes("GB2312"); 6 7 //将数组转为16进制字符串 8 Strin 阅读全文
posted @ 2023-06-25 19:17 爱,诗意永存 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 一、简介 官网链接:https://cloud.spring.io/spring-cloud-static/spring-cloud-gateway/2.1.1.RELEASE/single/spring-cloud-gateway.html#_gatewayfilter_factories 用法: 阅读全文
posted @ 2023-03-04 20:48 爱,诗意永存 阅读(349) 评论(0) 推荐(0) 编辑
摘要: SpringJUnit4ClassRunner+mockito (二) 阅读全文
posted @ 2023-02-27 11:27 爱,诗意永存 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 导出表信息 1 SELECT 2 TABLE_NAME 表名, 3 REPLACE ( 4 REPLACE ( TABLE_COMMENT, CHAR ( 10 ), '' ), 5 CHAR ( 13 ), 6 ',' 7 ) 表注释, 8 TABLE_ROWS 数据量 9 FROM 10 inf 阅读全文
posted @ 2023-02-13 16:14 爱,诗意永存 阅读(26) 评论(0) 推荐(0) 编辑
摘要: poi 导出word+图表 支持 柱状、折线、饼图、簇状柱状图、表格、簇状+折线 组合图 jdk 1.8+ 阅读全文
posted @ 2022-10-28 10:56 爱,诗意永存 阅读(843) 评论(0) 推荐(0) 编辑
摘要: SpringJUnit4ClassRunner+mockito 进程feign接口进行单元测试 阅读全文
posted @ 2022-07-28 16:53 爱,诗意永存 阅读(751) 评论(0) 推荐(0) 编辑