Configure Redisson using Spring YAML#6873
Configure Redisson using Spring YAML#6873livk-cloud wants to merge 6 commits intoredisson:masterfrom
Conversation
0b00f6c to
1c80570
Compare
Signed-off-by: livk <[email protected]>
1c80570 to
3d3dca1
Compare
|
Please cover that feature in the documentation as well https://github.com/redisson/redisson/blob/master/docs/integration-with-spring.md |
Signed-off-by: livk <[email protected]>
8b66549 to
0ddeb79
Compare
Signed-off-by: livk <[email protected]>
0ddeb79 to
7fecf38
Compare
|
In upcoming release Redisson doesn't use Jackson for yaml parsing, but Snake YAML directly. Please use Snake YAML lib for parsing |
|
|
Switching to Snake YAML has caused many problems that did not exist before, such as #6849 (comment) |
Fixed |
34c11b9 to
e222ff9
Compare
Signed-off-by: livk <[email protected]>
7911ec7 to
525dec7
Compare
Signed-off-by: livk <[email protected]>
45647b3 to
4678fad
Compare
|
@mrniko I think redisson-spring-boot should add different modules for different versions, just like redisson-spring-data |
|
I thought about it, maybe in the future. |
| @ConditionalOnClass({Redisson.class, RedisOperations.class, DataRedisAutoConfiguration.class}) | ||
| @EnableConfigurationProperties({RedissonProperties.class, DataRedisProperties.class}) | ||
| @EnableConfigurationProperties({RedissonPropertiesV4.class, DataRedisProperties.class}) | ||
| public class RedissonAutoConfigurationV4 { |
There was a problem hiding this comment.
Standard configuration won't work with your changes
There was a problem hiding this comment.
@mrniko The use of new Properties is meant to better move configurations onto SpringBoot Yaml, and this will of course phase out the old configuration methods. Please refer to the new configuration
There was a problem hiding this comment.
Can we have both options? Since some users continue use classic Spring Boot Redis config
There was a problem hiding this comment.
@mrniko I think I misunderstood what you meant earlier. If it is a standard SpringBoot Redis Config, it is of course supported. Please refer to the following code in AutoConfigurationV4.
@Fallback
@Bean(value = "redissonClient", destroyMethod = "shutdown")
@ConditionalOnMissingBean
public RedissonClient fallbackRedissonClient(DataRedisProperties properties,
ObjectProvider<RedissonAutoConfigurationCustomizer> configCustomizers) {
return RedissonClientFactory.create(properties, configCustomizers);
}
No description provided.