码迷,mamicode.com
首页 > 编程语言 > 详细

springboot集成redis(七)

时间:2018-06-25 16:57:30      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:依赖   min   开机自启动   ram   maven   conf   127.0.0.1   password   artifact   

导入maven依赖

 <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-redis</artifactId>
</dependency>

配置springboot的redis环境  application.yml 文件中

spring:
  redis:
    host: 127.0.0.1
    password: 
    port: 6379
    pool:
      max-idle: 100
      min-idle: 1
      max-active: 1000
      max-wait: -1

redis服务windows  下开机自启动

redis-server --service-install redis.windows.conf

手动启动redis

redis-server --service-start

 

springboot集成redis(七)

标签:依赖   min   开机自启动   ram   maven   conf   127.0.0.1   password   artifact   

原文地址:https://www.cnblogs.com/wookong/p/9224475.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!