springboot -redis哨兵模式集群配置
摘要:application.yml配置文件 server: port: 6789 servlet: context-path: /my: name: pc_demo spring: profiles: active: test #test测试环境 prod生产环境 redis: port: 6379 d
阅读全文
posted @
2019-12-11 11:46
卖小女孩的小男孩
阅读(1031)
推荐(1)
springboot整合redis哨兵
摘要:package com.redis.demo.core.redis;import com.fasterxml.jackson.annotation.JsonAutoDetect;import com.fasterxml.jackson.annotation.PropertyAccessor;impo
阅读全文
posted @
2019-12-09 19:13
卖小女孩的小男孩
阅读(141)
推荐(0)
Springboot配置文件2
摘要:# # 核心属性# # 文件编码banner.charset= UTF-8# 文件位置banner.location= classpath:banner.txt # 日志配置# 日志配置文件的位置。 例如对于Logback的`classpath:logback.xml`logging.config=
阅读全文
posted @
2019-06-28 18:28
卖小女孩的小男孩
阅读(159)
推荐(0)
SpringBoot配置详情
摘要:application.properties #端口号server.port=8083#session失效时间server.session-timeout=30#编码server.tomcat.uri-encoding=utf-8#访问的根路径server.servlet.context-path=
阅读全文
posted @
2019-06-18 15:42
卖小女孩的小男孩
阅读(349)
推荐(0)