上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页
摘要: import org.springframework.beans.factory.InitializingBean; @Componentpublic class TestInitializingBean implements InitializingBean{ @Override public v 阅读全文
posted @ 2022-03-31 17:14 ☆♂安♀★ 阅读(143) 评论(0) 推荐(0)
摘要: YYYYMMdd的 YYYY 是表示:当天所在的周属于的年份,一周从周日开始,周六结束,只要本周跨年,那么这周就算入下一年。比如今天是2021-12-29 星期三,然后本周六是2022-01-01,存在着跨年,如果YYYYMMdd展示出来的结果2022-12-29 而yyyyMMdd展示出来时目前日 阅读全文
posted @ 2021-12-29 14:30 ☆♂安♀★ 阅读(3551) 评论(0) 推荐(0)
摘要: 在本地windows电脑和开发环境(linux) ,都不报错,但是在测试环境(linux) 上报错。 报错信息 org.bouncycastle.openpgp.PGPException: Exception creating cipher at org.bouncycastle.openpgp.P 阅读全文
posted @ 2021-12-21 18:20 ☆♂安♀★ 阅读(478) 评论(0) 推荐(0)
摘要: Limited Setting Effect 中文描述 Java 8 -Xbootclasspath:<path> Sets the search path for bootstrap classes and resources. 设置引导类和资源的搜索路径。 不常用,否则要重新写所有Java 核心 阅读全文
posted @ 2021-12-21 17:38 ☆♂安♀★ 阅读(1593) 评论(0) 推荐(0)
摘要: // //maximumPoolSize设置为2 ,拒绝策略为AbortPolic策略,直接抛出异常 ThreadPoolExecutor pool = new ThreadPoolExecutor(5, 10, 1000000, TimeUnit.MILLISECONDS, new ArrayBl 阅读全文
posted @ 2021-12-07 10:24 ☆♂安♀★ 阅读(543) 评论(0) 推荐(0)
摘要: Java 操作 Redis 的库有两个,Jedis 和 Lettuce,目前 SpringBoot 2.x 中已经将 Jedis 换成了 Lettuce 原因:Lettuce的连接redis太久没有操作,被强制关闭连接。 可以在spring-boot-starter-data-redis 查看是引用 阅读全文
posted @ 2021-11-24 17:46 ☆♂安♀★ 阅读(1858) 评论(0) 推荐(0)
摘要: zkServer.sh status 命令查看zookeeper集群的状态,发现异常 Error contacting service. It is probably not running 最开始以为是server配置的myid有问题,后面看了下zookeeper.out文件,发现连接不到端口,有 阅读全文
posted @ 2021-11-17 23:45 ☆♂安♀★ 阅读(204) 评论(0) 推荐(0)
摘要: import org.springframework.beans.BeansException;import org.springframework.context.ApplicationContext;import org.springframework.context.ApplicationCo 阅读全文
posted @ 2021-11-16 18:36 ☆♂安♀★ 阅读(47) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8"?> <configuration scan="true" scanPeriod="10 seconds" debug="false"> <!--上下文名称--> <contextName>logback</contextNam 阅读全文
posted @ 2021-11-12 18:13 ☆♂安♀★ 阅读(72) 评论(0) 推荐(0)
摘要: 若偶尔报错no operations allowed after connection closed com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure spring: datasource: # 数据源-1 primary: url: jdbc:mysql://127.0.0.1:3306/test1?useSSL=false&autoReconnect=true&characterEncoding=utf8 driver-class-name: com.mysql.jdbc.Driver username: root password: root 阅读全文
posted @ 2021-10-13 20:45 ☆♂安♀★ 阅读(691) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页