|
@@ -1,128 +0,0 @@
|
|
|
-# 加解密根密码
|
|
|
-jasypt:
|
|
|
- encryptor:
|
|
|
- password: tofly #根密码
|
|
|
-
|
|
|
-# Spring 相关
|
|
|
-spring:
|
|
|
- redis:
|
|
|
- password:
|
|
|
- host: tofly-redis
|
|
|
- jedis:
|
|
|
- pool:
|
|
|
- max-idle: 30
|
|
|
- min-idle: 10
|
|
|
- max-active: 20
|
|
|
- max-wait: 10000
|
|
|
- # zipkin
|
|
|
- zipkin:
|
|
|
- enabled: true
|
|
|
- base-url: http://127.0.0.1:6002
|
|
|
- sleuth:
|
|
|
- web:
|
|
|
- client:
|
|
|
- enabled: true
|
|
|
- sampler:
|
|
|
- # 默认的采样比率为0.1,不能看到所有请求数据
|
|
|
- # 更改采样比率为1,就能看到所有的请求数据了,但是这样会增加接口调用延迟
|
|
|
- probability: 1.0
|
|
|
- servlet:
|
|
|
- multipart:
|
|
|
- max-file-size: 100MB
|
|
|
- max-request-size: 100MB
|
|
|
- jackson:
|
|
|
- date-format: yyyy-MM-dd HH:mm:ss
|
|
|
- time-zone: GMT+8
|
|
|
-# boot:
|
|
|
-# admin:
|
|
|
-# client:
|
|
|
-# url: http://127.0.0.1:6001
|
|
|
-
|
|
|
-# 暴露监控端点
|
|
|
-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 配置
|
|
|
-hystrix:
|
|
|
- command:
|
|
|
- default:
|
|
|
- execution:
|
|
|
- isolation:
|
|
|
- strategy: SEMAPHORE
|
|
|
- thread:
|
|
|
- timeoutInMilliseconds: 60000
|
|
|
- shareSecurityContext: true
|
|
|
-
|
|
|
-#请求处理的超时时间
|
|
|
-ribbon:
|
|
|
- ReadTimeout: 10000
|
|
|
- ConnectTimeout: 10000
|
|
|
-
|
|
|
-# mybaits-plus配置
|
|
|
-
|
|
|
-mybatis-plus:
|
|
|
- type-aliases-package: com.tofly.*.entity
|
|
|
- mapper-locations: classpath*:/mapper/*Mapper.xml,classpath*:/customMapper/*Mapper.xml
|
|
|
- global-config:
|
|
|
- banner: false
|
|
|
- db-config:
|
|
|
- #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
|
|
|
- id-type: 1
|
|
|
- field-strategy: 1
|
|
|
- table-underline: true
|
|
|
- logic-delete-value: 0 #逻辑已删除
|
|
|
- logic-not-delete-value: 1 #逻辑未删除 (加上@TableLogic后,相当于存在判断条件 column= 1 )
|
|
|
- db-type: oracle
|
|
|
- configuration:
|
|
|
- map-underscore-to-camel-case: true
|
|
|
- call-setters-on-nulls: true
|
|
|
- jdbc-type-for-null: null
|
|
|
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
-
|
|
|
-
|
|
|
- #spring security 配置
|
|
|
-security:
|
|
|
- oauth2:
|
|
|
- resource:
|
|
|
- loadBalanced: true
|
|
|
- token-info-uri: http://tofly-auth/oauth/check_token
|
|
|
- client:
|
|
|
- client-id: ENC(uRVGfvAwW6FVQJm/GC7v0A==) #tofly
|
|
|
- client-secret: ENC(w5AYCtwwgd+zVwGc5AudCw==)
|
|
|
- scope: server
|
|
|
-
|
|
|
-ftp:
|
|
|
- enable: true
|
|
|
- server: 127.0.0.1
|
|
|
- port: 21
|
|
|
- userName: root
|
|
|
- password: Huawei@5tgb
|
|
|
-
|
|
|
-eureka:
|
|
|
- instance:
|
|
|
- leaseRenewalIntervalInSeconds: 10
|
|
|
- health-check-url-path: /actuator/health
|
|
|
- metadata-map:
|
|
|
- startup: ${random.int} #needed to trigger info and endpoint update after restart
|