摘要:        
自定义注解: @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface RedisDistributeLock { String key(); int leastLockMs() defau    阅读全文
        
            posted @ 2022-12-17 20:44
梦幻朵颜
阅读(74)
评论(0)
推荐(0)
        
            
        
        
摘要:        
配置pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta    阅读全文
        
            posted @ 2022-12-17 20:09
梦幻朵颜
阅读(726)
评论(0)
推荐(0)
        
            
        
        
摘要:        
import lombok.extern.slf4j.Slf4j; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplicati    阅读全文
        
            posted @ 2022-12-17 19:50
梦幻朵颜
阅读(162)
评论(0)
推荐(0)
        
            
        
        
摘要:        
配置pom.xml: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis-reactive</artifactId> </dependency> <de    阅读全文
        
            posted @ 2022-12-17 19:43
梦幻朵颜
阅读(1949)
评论(0)
推荐(0)
        
            
        
        
摘要:        
package com.my.config; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jack    阅读全文
        
            posted @ 2022-12-17 19:29
梦幻朵颜
阅读(1177)
评论(0)
推荐(0)
        
            
        
        
摘要:        
我引用的是springboot 2.7.0版本。 在pom.xml里引入r2dbc的包,和mysql的驱动包: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-webfl    阅读全文
        
            posted @ 2022-12-17 19:25
梦幻朵颜
阅读(1409)
评论(0)
推荐(0)
        
            
        
        
摘要:        
先在pom.xml文件里引入webflux依赖包: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-webflux</artifactId> </dependency>     阅读全文
        
            posted @ 2022-12-17 19:17
梦幻朵颜
阅读(271)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                 
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号