摘要:
<!-- pom 文件--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId></dependency><!-- https: 阅读全文
摘要:
<!--websocket pom --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId></dependency> #Co 阅读全文
摘要:
<!--rabbitmq的配置--> #rabbitmqspring.rabbitmq.host=127.0.0.1spring.rabbitmq.port=5672spring.rabbitmq.username=guestspring.rabbitmq.password=guest <!-- R 阅读全文
摘要:
/*** 基于Redis的 setnx特性* **/ import redis.clients.jedis.Jedis; public class RedisLock { //加入redis锁 public static boolean tryLock(String methods){ Jedis 阅读全文
摘要:
## Redis 配置## Redis数据库索引(默认为0)spring.redis.database=0spring.redis.host=127.0.0.1spring.redis.port=6379 <!--Redis pom--><dependency> <groupId>org.sprin 阅读全文