在阿里云部署springboot项目发现异常。在测试服是正常的,正式服使用了aliyun的redis服务
异常:
Caused by: redis.clients.jedis.exceptions.JedisDataException: ERR unknown command config
应该是阿里云对redis进行了限制
需要增加:
@Configuration
public class RedisConfig {
@Bean
public static ConfigureRedisAction configureRedisAction() {
return ConfigureRedisAction.NO_OP;
}
}