SpringBoot启动类增加注解
@EnableRedisHttpSession
@SpringBootApplication
@ImportResource({"classpath:config/applicationContext-xweb-dubbo.xml"
,"classpath:config/applicationContext-xweb.xml"
,"classpath:config/applicationContext-jedis.xml"})
@Configuration
@ComponentScan
@EnableRedisHttpSession
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class, RedisAutoConfiguration.class})
public class XwebApplication extends WebMvcConfigurerAdapter { }
application.properties
spring.redis.host=192.16.8.126
spring.redis.port=6379
spring.redis.password=cor2017
pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
<version>1.1.0.RELEASE</version>
<type>pom</type>
</dependency>

最新文章

  1. matlab 将多个盒图放在一张图上
  2. .Net Task&lt;T&gt;的一种比较神奇的卡死情况(Wait/Result卡死, await能得到结果)
  3. ThinkPHP统一设置utf-8编码
  4. 1.5.8 语言分析器(Analyzer)
  5. HtmlAgilityPack相关网页
  6. 第三篇:gradle 编译 Android app 概览
  7. 取出当前会话的sid等
  8. iOS 相关职位要求整理版
  9. 某公司ASP.NET应聘上机试题
  10. Linux内核中链表实现
  11. git 客户端提交
  12. [LeetCode&amp;Python] Problem 53. Maximum Subarray
  13. zabbix_agent YUM源配置
  14. log4.net 配置-控制台输出带颜色的日志
  15. python + eclipse +pydev
  16. vue element-ui怎样提炼一个自己写的js当作公共js
  17. adb devices连接提示 Android offline或unauthorized的解决办法
  18. Android Security Internals
  19. C# .net MD5加密函数
  20. C++ STL的容器类型

热门文章

  1. [Jobdu] 题目1390:矩形覆盖
  2. tornado部署
  3. 每日英语:Yahoo&#39;s Rally: Made in China
  4. table中添加下拉框
  5. jquery 获取各种高宽
  6. Windows Phone 解析手机型号DeviceStatus.DeviceName
  7. 转:linux添加用户
  8. jQuery 中 attr() 和 prop() 方法的区别&lt;转&gt;
  9. codeforces 429 On the Bench dp+排列组合 限制相邻元素,求合法序列数。
  10. 微信小程序 - dialog