Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zhangjian1949
microservices-platform
提交
6c62a648
microservices-platform
项目概览
zhangjian1949
/
microservices-platform
与 Fork 源项目一致
Fork自
zlt2000 / microservices-platform
通知
6
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
microservices-platform
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6c62a648
编写于
3月 23, 2019
作者:
zlt2000
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化redis配置,因为redis不同的集群配置完全不一样,所以统一放到zlt-config中统一管理各环境的redis配置
上级
67b975dc
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
24 addition
and
32 deletion
+24
-32
zlt-business/file-center/src/main/resources/application.yml
zlt-business/file-center/src/main/resources/application.yml
+0
-5
zlt-business/user-center/src/main/resources/application.yml
zlt-business/user-center/src/main/resources/application.yml
+0
-5
zlt-config/src/main/resources/application-dev.properties
zlt-config/src/main/resources/application-dev.properties
+3
-3
zlt-config/src/main/resources/application-prod.properties
zlt-config/src/main/resources/application-prod.properties
+17
-0
zlt-config/src/main/resources/application-test.properties
zlt-config/src/main/resources/application-test.properties
+3
-3
zlt-gateway/spring-cloud-gateway/src/main/resources/application.yml
...y/spring-cloud-gateway/src/main/resources/application.yml
+1
-6
zlt-gateway/zuul-gateway/src/main/resources/application.yml
zlt-gateway/zuul-gateway/src/main/resources/application.yml
+0
-5
zlt-uaa/src/main/resources/application.yml
zlt-uaa/src/main/resources/application.yml
+0
-5
未找到文件。
zlt-business/file-center/src/main/resources/application.yml
浏览文件 @
6c62a648
...
...
@@ -20,11 +20,6 @@ spring:
password
:
${zlt.datasource.password}
driver-class-name
:
com.mysql.jdbc.Driver
redis
:
host
:
${zlt.redis.host}
port
:
${zlt.redis.port}
timeout
:
${zlt.redis.timeout}
mybatis-plus
:
mapper-locations
:
classpath:/mapper/*Mapper.xml
#实体扫描,多个package用逗号或者分号分隔
...
...
zlt-business/user-center/src/main/resources/application.yml
浏览文件 @
6c62a648
...
...
@@ -5,11 +5,6 @@ spring:
password
:
${zlt.datasource.password}
driver-class-name
:
com.mysql.jdbc.Driver
redis
:
host
:
${zlt.redis.host}
port
:
${zlt.redis.port}
timeout
:
${zlt.redis.timeout}
mybatis-plus
:
mapper-locations
:
classpath:/mapper/*Mapper.xml
#实体扫描,多个package用逗号或者分号分隔
...
...
zlt-config/src/main/resources/application-dev.properties
浏览文件 @
6c62a648
...
...
@@ -5,9 +5,9 @@ zlt.datasource.username=root
zlt.datasource.password
=
1q2w3e4r
##### redis配置
zlt
.redis.host
=
192.168.28.130
zlt
.redis.port
=
6379
zlt
.redis.timeout
=
5000
spring
.redis.host
=
192.168.28.130
spring
.redis.port
=
6379
spring
.redis.timeout
=
5000
##### elasticsearch配置
zlt.elasticsearch.cluster-name
=
my-es
...
...
zlt-config/src/main/resources/application-prod.properties
0 → 100644
浏览文件 @
6c62a648
########################## 统一变量配置 ##########################
##### 数据库配置
zlt.datasource.ip
=
120.78.94.191
zlt.datasource.username
=
root
zlt.datasource.password
=
1q2w3e4r
##### redis配置
spring.redis.sentinel.master
=
mymaster
spring.redis.sentinel.nodes
=
120.78.94.191:26380,120.78.94.191:26381
spring.redis.password
=
1q2w3e4r
##### elasticsearch配置
zlt.elasticsearch.cluster-name
=
my-es
zlt.elasticsearch.cluster-nodes
=
47.107.114.25:9300
##### sentinel配置
zlt.sentinel.dashboard
=
120.78.94.191:6999
\ No newline at end of file
zlt-config/src/main/resources/application-test.properties
浏览文件 @
6c62a648
...
...
@@ -5,9 +5,9 @@ zlt.datasource.username=root
zlt.datasource.password
=
1q2w3e4r
##### redis配置
zlt
.redis.host
=
120.78.94.191
zlt
.redis.port
=
6379
zlt
.redis.timeout
=
5000
spring
.redis.host
=
120.78.94.191
spring
.redis.port
=
6379
spring
.redis.timeout
=
5000
##### elasticsearch配置
zlt.elasticsearch.cluster-name
=
my-es
...
...
zlt-gateway/spring-cloud-gateway/src/main/resources/application.yml
浏览文件 @
6c62a648
...
...
@@ -29,9 +29,4 @@ spring:
predicates
:
-
Path=/api-file/**
filters
:
-
StripPrefix=1
redis
:
host
:
${zlt.redis.host}
port
:
${zlt.redis.port}
timeout
:
${zlt.redis.timeout}
\ No newline at end of file
-
StripPrefix=1
\ No newline at end of file
zlt-gateway/zuul-gateway/src/main/resources/application.yml
浏览文件 @
6c62a648
spring
:
redis
:
host
:
${zlt.redis.host}
port
:
${zlt.redis.port}
timeout
:
${zlt.redis.timeout}
# sentinel动态配置规则
cloud
:
sentinel
:
...
...
zlt-uaa/src/main/resources/application.yml
浏览文件 @
6c62a648
...
...
@@ -5,11 +5,6 @@ spring:
password
:
${zlt.datasource.password}
driver-class-name
:
com.mysql.jdbc.Driver
redis
:
host
:
${zlt.redis.host}
port
:
${zlt.redis.port}
timeout
:
${zlt.redis.timeout}
mybatis-plus
:
mapper-locations
:
classpath:/mapper/*Mapper.xml
#实体扫描,多个package用逗号或者分号分隔
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录