S
S
Spring Boot参考指南
搜索文档…
Introduction
I. Spring Boot文档
II. 开始
III. 使用Spring Boot
IV. Spring Boot特性
V. Spring Boot执行器:用于生产环境的特性
VI. 部署到云端
VII. Spring Boot CLI
VIII. 构建工具插件
IX. How-to指南
73. Spring Boot应用
74. 属性与配置
75. 内嵌网络服务器
76. Spring MVC
77. HTTP客户端
78. 日志
79. 数据访问
80. 数据库初始化
81. 消息传送
82. 批处理应用
83. 执行器
84. 安全
85. 热交换
86. 构建
87. 传统部署
87.1 创建可部署的war文件
87.2 为老的servlet容器创建可部署的war文件
87.3 将现有的应用转换为Spring Boot
87.4 部署WAR到Weblogic
87.5 部署WAR到老的(Servlet2.5)容器
87.6 使用Lettuce来代替Jedis
X.附录
由
GitBook
提供支持
87.6 使用Lettuce来代替Jedis
Spring Boot starter(
spring-boot-starter-data-redis
)默认使用
Lettuce
。你需要排除那个依赖,并把
Jedis
的依赖加入进来。Spring Boot管理这些依赖,使这些步骤尽可能容易。
Maven的例子:
<
dependency
>
<
groupId
>
org.springframework.boot
</
groupId
>
<
artifactId
>
spring-boot-starter-data-redis
</
artifactId
>
<
exclusions
>
<
exclusion
>
<
groupId
>
io.lettuce
</
groupId
>
<
artifactId
>
lettuce-core
</
artifactId
>
</
exclusion
>
</
exclusions
>
</
dependency
>
<
dependency
>
<
groupId
>
redis.clients
</
groupId
>
<
artifactId
>
jedis
</
artifactId
>
</
dependency
>
Gradle的例子:
configurations {
compile.exclude module: "lettuce"
}
dependencies {
compile("redis.clients:jedis")
// ...
}
以前
87.5 部署WAR到老的(Servlet2.5)容器
下一个
X.附录
最近更新
2yr ago
复制链接