|
@@ -1,75 +1,9 @@
|
|
|
server:
|
|
|
- port: 6010
|
|
|
- max-http-header-size: 10MB
|
|
|
+ port: 8849
|
|
|
|
|
|
-hystrix:
|
|
|
- threadpool:
|
|
|
- default:
|
|
|
- coreSize: 200 #并发执行的最大线程数,默认10
|
|
|
- maxQueueSize: 200 #BlockingQueue的最大队列数
|
|
|
- queueSizeRejectionThreshold: 50 #即使maxQueueSize没有达到,达到queueSizeRejectionThreshold该值后,请求也会被拒绝
|
|
|
- command:
|
|
|
- QcServiceClient#extract(QueryVo).execution.isolation.thread.timeoutInMilliseconds: 3600000
|
|
|
- default:
|
|
|
- execution:
|
|
|
- timeout:
|
|
|
- enabled: true
|
|
|
- isolation:
|
|
|
- strategy: SEMAPHORE
|
|
|
- semaphore:
|
|
|
- maxConcurrentRequests: 2000
|
|
|
- thread:
|
|
|
- timeoutInMilliseconds: 20000
|
|
|
-
|
|
|
-ribbon:
|
|
|
- ReadTimeout: 20000
|
|
|
- ConnectTimeout: 20000
|
|
|
- MaxAutoRetries: 0
|
|
|
- MaxAutoRetriesNextServer: 1
|
|
|
-
|
|
|
-feign:
|
|
|
- hystrix:
|
|
|
- enabled: true
|
|
|
- #开启Feign请求压缩
|
|
|
- compression:
|
|
|
- response:
|
|
|
- enabled: true
|
|
|
- httpclient:
|
|
|
- enabled: false
|
|
|
- okhttp:
|
|
|
- enabled: true
|
|
|
- max-connections: 1000 # 默认值
|
|
|
- max-connections-per-route: 250 # 默认值
|
|
|
-
|
|
|
-management:
|
|
|
- endpoints:
|
|
|
- web:
|
|
|
- exposure:
|
|
|
- include: bus-refresh,health,info,hystrix.stream
|
|
|
- cors:
|
|
|
- allowed-origins: "*"
|
|
|
- allowed-methods: "*"
|
|
|
- endpoint:
|
|
|
- health:
|
|
|
- show-details: always
|
|
|
-
|
|
|
-# 驱动配置信息
|
|
|
spring:
|
|
|
application:
|
|
|
name: security-center
|
|
|
- cloud:
|
|
|
- config:
|
|
|
- discovery:
|
|
|
- enabled: true
|
|
|
- service-id: config-center
|
|
|
- main:
|
|
|
- allow-bean-definition-overriding: true
|
|
|
-
|
|
|
- jackson:
|
|
|
- date-format: yyyy-MM-dd HH:mm:ss
|
|
|
- time-zone: GMT+8
|
|
|
-
|
|
|
- #redis
|
|
|
redis:
|
|
|
database:
|
|
|
cache: 8 # cache索引
|
|
@@ -85,34 +19,6 @@ spring:
|
|
|
min-idle: 0 # 连接池中的最小空闲连接
|
|
|
timeout: 20000 # 连接超时时间(毫秒)
|
|
|
|
|
|
- servlet:
|
|
|
- multipart:
|
|
|
- max-request-size: 2048MB
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-myhost: localhost
|
|
|
-oath.self.address: http://${myhost}:${server.port}
|
|
|
-
|
|
|
-# 加解密开关
|
|
|
-encrypt:
|
|
|
- enable: true
|
|
|
-
|
|
|
-swagger:
|
|
|
- enable: true
|
|
|
-
|
|
|
-#xml解析成结构化开关
|
|
|
-xml_analyse:
|
|
|
- enable: false
|
|
|
-
|
|
|
-#函数初始化modeId开关
|
|
|
-initmodeid:
|
|
|
- enable: false
|
|
|
-
|
|
|
-#对接过程中是否记录正常流程的日志
|
|
|
-log_switch:
|
|
|
- enable: true
|
|
|
-
|
|
|
eureka:
|
|
|
client:
|
|
|
service-url:
|
|
@@ -122,6 +28,21 @@ logging:
|
|
|
config: classpath:logback-spring.xml
|
|
|
file: logs/security-center/log_info.log
|
|
|
|
|
|
+management:
|
|
|
+ endpoints:
|
|
|
+ web:
|
|
|
+ exposure:
|
|
|
+ include: '*'
|
|
|
+ endpoint:
|
|
|
+ health:
|
|
|
+ show-details: always
|
|
|
+
|
|
|
+feign:
|
|
|
+ okhttp:
|
|
|
+ enabled: true
|
|
|
+ribbon:
|
|
|
+ ConnectTimeout: 3000 #服务请求连接超时时间(毫秒)
|
|
|
+ ReadTimeout: 3000 #服务请求处理超时时间(毫秒)
|
|
|
|
|
|
swagger.title: 权限管理服务
|
|
|
swagger.des: 权限管理服务
|