11 2021 档案
摘要:Java 操作 Redis 的库有两个,Jedis 和 Lettuce,目前 SpringBoot 2.x 中已经将 Jedis 换成了 Lettuce 原因:Lettuce的连接redis太久没有操作,被强制关闭连接。 可以在spring-boot-starter-data-redis 查看是引用
阅读全文
摘要:zkServer.sh status 命令查看zookeeper集群的状态,发现异常 Error contacting service. It is probably not running 最开始以为是server配置的myid有问题,后面看了下zookeeper.out文件,发现连接不到端口,有
阅读全文
摘要:import org.springframework.beans.BeansException;import org.springframework.context.ApplicationContext;import org.springframework.context.ApplicationCo
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8"?> <configuration scan="true" scanPeriod="10 seconds" debug="false"> <!--上下文名称--> <contextName>logback</contextNam
阅读全文