搭建一个springboot项目,整合redis cluster集群配置。
项目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-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.1.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.huateng</groupId>
<artifactId>applacation</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>applacation</name>
<description>Demo project for Spring Boot</description&

本文档详细介绍了如何在Springboot项目中集成Redis Cluster集群,包括pom.xml的依赖配置、application.properties中的参数设置以及启用自动配置的注解使用,同时提供了测试类的相关说明。
最低0.47元/天 解锁文章
5821

被折叠的 条评论
为什么被折叠?



