1、io.lettuce.core.RedisReadOnlyException: READONLY You can’t write against a read only replica.
重启redis服务
2、springboot 项目 tomcat部署@value值无法注入解决办法
类上添加注解
@Component
@ConfigurationProperties(prefix = “{为卸载配置文件yml中的统一配置前缀,例如:spring.datasource.druid}”)
对应的配置的值作为属性写在类文件中 private int initialSize; private int maxActive; 使用get、set方法
然后重启