#测试环境配置文件 spring: datasource: url: jdbc:oracle:thin:@172.16.90.197:1521/ATTMS password: gxmestest username: gxmestest driver-class-name: oracle.jdbc.OracleDriver druid: max-active: 50 initial-size: 10 min-idle: 10 max-wait: 3000 # Oracle专属优化参数 validation-query: SELECT 1 FROM DUAL # Oracle的验证查询 test-while-idle: true test-on-borrow: false test-on-return: false time-between-eviction-runs-millis: 300000 # 空闲连接检测间隔 remove-abandoned: true remove-abandoned-timeout: 600 application: name: antai-wltms-api mvc: async: request-timeout: 15000 # redis: # # Redis本地服务器地址,注意要开启redis服务,即那个redis-server.exe # host: 127.0.0.1 # # Redis服务器端口,默认为6379.若有改动按改动后的来 # port: 6379 # #Redis服务器连接密码,默认为空,若有设置按设置的来 # password: # jedis: # pool: # # 连接池最大连接数,若为负数则表示没有任何限制 # max-active: 8 # # 连接池最大阻塞等待时间,若为负数则表示没有任何限制 # max-wait: -1 # # 连接池中的最大空闲连接 # max-idle: 8 server: port: 8098 tomcat: max-threads: 1000 accept-count: 800 eureka: client: registerWithEureka: false fetchRegistry: false openfeign: ColumnDataFeign: url: ${COLUMNDATAFEIGN_URL:172.16.90.202:80} AmsFeign: url: ${AMSFEIGN_URL:172.16.90.202:8079} WmsFeign: url: ${WMSFEIGN_URL:172.16.90.202:80} # url: ${WMSFEIGN_URL:localhost:8093} RmsFeign: url: ${RMSFEIGN_URL:172.16.90.202:80} EmsFeign: url: ${EMSFEIGN_URL:172.16.90.202:8096} WebSocketFeign: url: ${WEBSOCKETFEIGN_URL:172.16.90.214:80} # url: ${WEBSOCKETFEIGN_URL:localhost:8000} DzFeign: url: ${DZFEIGN_URL:172.16.90.202:8056} # url: ${DZFEIGN_URL:localhost:8056} REPORTFeign: url: ${REPORTFEIGN_URL:172.16.90.202:8055} TmiFeigh: url: ${TMI_URL:172.16.90.202:8018} # url: ${TMI_URL:localhost:8018} #远程调用 feign: hystrix: enabled: false #开启熔断,熔断时间和feign超时时间必须一致,否则时间短的生效 client: config: default: #默认配置,连接时间要短,读取时间要长 connectTimeout: 3000 #单位毫秒 readTimeout: 10000 #单位毫秒 #熔断器 hystrix: command: default: execution: timeout: enabled: true isolation: strategy: THREAD thread: timeoutInMilliseconds: 60000 circuitBreaker: requestVolumeThreshold: 20 sleepWindowInMilliseconds: 5000 errorThresholdPercentage: 50 metrics: rollingStats: timeInMilliseconds: 10000 numBuckets: 10 yourSpecificCommandKey: # 可以为特定命令单独配置 execution: isolation: thread: timeoutInMilliseconds: 30000 threadpool: default: coreSize: 20 maximumSize: 50 maxQueueSize: 1000 queueSizeRejectionThreshold: 800 allowMaximumSizeToDivergeFromCoreSize: true