Update README.md

pull/5661/head
Nikita Koksharov 11 months ago committed by GitHub
parent 61da76fd0b
commit 7c14d83c55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -162,10 +162,25 @@ Try __[Redisson PRO](https://redisson.pro)__ with **ultra-fast performance** and
You may not have Redis in some environments. In this case Redisson can be disabled.
### Using Annotations
Spring Boot 2.7+
```java
@SpringBootApplication
@EnableAutoConfiguration(exclude = {
RedissonAutoConfigurationV2.class})
public class Application {
public static void main(String[] args) {
SpringApplication.run(MyApplication.class, args);
}
}
```
Spring Boot up to 2.6
```java
@SpringBootApplication
@EnableAutoConfiguration(exclude = {
RedissonAutoConfigurationV2.class,
RedissonAutoConfiguration.class})
public class Application {
@ -175,12 +190,21 @@ public class Application {
}
```
### Using `application.yml`
Spring Boot 2.7+
```yaml
spring:
autoconfigure:
exclude:
- org.redisson.spring.starter.RedissonAutoConfigurationV2
```
Spring Boot up to 2.6
```yaml
spring:
autoconfigure:
exclude:
- org.redisson.spring.starter.RedissonAutoConfiguration
```

Loading…
Cancel
Save