• 周五. 12月 2nd, 2022

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

Integration of redis – springboot2. X

[db:作者]

1月 6, 2022

Redis It’s often used in projects , Especially in the Internet business with large traffic . about Redis Of Client Generally used Jedis.Jedis It’s all about basic commands , In order to better be able to communicate with Sprig The fusion , stay Spring Data One of the projects is Spring Data Redis project , It’s used to operate Redis Of . Spring Data Redis Is in Jedis The upper layer is encapsulated , Let’s do it Redis It is more convenient . So in Spring boot In the integration Spring Data Redis It’s even simpler , Let’s take a look at the specific steps . Increased reliance on : <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> To configure Redis The address of , My side is local : spring.redis.host=localhost spring.redis.port=6379 If you have a password or something, configure it separately , Configuration information

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注