forked from heyile/springcloud-houseapp-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
application-dev.yaml
135 lines (129 loc) · 3.3 KB
/
application-dev.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# 加解密根密码
jasypt:
encryptor:
password: pigx #根密码
# redis 相关
spring:
redis:
password: redis@123456
host: shycloud-redis
port: 6579
servlet:
multipart:
max-file-size: 100MB
max-request-size: 1000MB
# zipkin
zipkin:
enabled: true
base-url: http://shycloud-zipkin
sleuth:
web:
client:
enabled: true
sampler:
# 默认的采样比率为0.1,不能看到所有请求数据
# 更改采样比率为1,就能看到所有的请求数据了,但是这样会增加接口调用延迟
probability: 1.0
# 暴露监控端点
management:
endpoints:
web:
exposure:
include: '*'
# feign 配置
feign:
hystrix:
enabled: true
okhttp:
enabled: true
httpclient:
enabled: false
client:
config:
default:
connectTimeout: 10000
readTimeout: 10000
compression:
request:
enabled: true
response:
enabled: true
# hystrix If you need to use ThreadLocal bound variables in your RequestInterceptor`s
# you will need to either set the thread isolation strategy for Hystrix to `SEMAPHORE or disable Hystrix in Feign.
hystrix:
command:
default:
execution:
isolation:
strategy: SEMAPHORE
thread:
timeoutInMilliseconds: 60000
shareSecurityContext: true
#请求处理的超时时间
ribbon:
ReadTimeout: 10000
ConnectTimeout: 10000
# mybaits-plus配置
mybatis-plus:
# MyBatis Mapper所对应的XML文件位置
mapper-locations: classpath:/mapper/*Mapper.xml
global-config:
# 逻辑删除配置
logic-delete-value: 1
logic-not-delete-value: 0
# 关闭MP3.0自带的banner
banner: false
db-config:
# 主键类型 0:数据库ID自增 1.未定义 2.用户输入 3 id_worker 4.uuid 5.id_worker字符串表示
id-type: 0
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
field-strategy: 1
# 默认数据库表下划线命名
table-underline: true
configuration:
map-underscore-to-camel-case: true
#swagger公共信息
swagger:
host: shycloud-gateway:9999
title: Shycloud Swagger API
description: Spring Cloud微服务开发脚手架
version: 2.5
license: Powered By shycloud
licenseUrl: https://shycloud.com/
terms-of-service-url: https://shycloud.com/
contact:
name: npm
email: [email protected]
url: https://shycloud.com/about.html
authorization:
name: shycloud OAuth
auth-regex: ^.*$
authorization-scope-list:
- scope: server
description: server all
token-url-list:
- http://shycloud-gateway:9999/auth/oauth/token
## spring security 配置
security:
oauth2:
client:
# 默认放行url,如果子模块重写这里的配置就会被覆盖
ignore-urls:
- /actuator/**
- /v2/api-docs
- /collection/selectbysyid
- /webapi/*
- /train/aliPayNotifyUrl
- /train/wxNotify
- /move/aliPayNotifyUrl
- /move/wxNotify
- /v1/mobile/wxNotify
- /v1/mobile/aliNotify
- /v1/mobile/register/*
- /v1/mobile/info/*
- /v1/mobile/load/*
- /v1/mobile/send/*
- /member/memberList/*
resource:
loadBalanced: true
token-info-uri: http://shycloud-auth/oauth/check_token