nacos 配置

[复制链接]
发表于 2024-10-25 14:39:05 | 显示全部楼层 |阅读模式

image.png

server: 
    port: 8086
seeyon:
    baseUrl: https://XXXX
    restUrl: https://XXX
    accountId: 670869647114347
    orgAdminRoleId: -xxx
    username: xxxx
    password: xxxx
oss: 
   endpoint: http://oss-cn-hongkong-internal.aliyuncs.com
   accessKeyId: xxxx
   accessKeySecret: xxxx
   bucketName: xxxx
   rootDirectory: test
spring:
    datasource:
        druid:
            mysql:
                name: mysql-test
                url: jdbc:mysql://xxxxxxx3306/xxxxxx
                username: xxxxx
                password: xxxxxxxx
                driver-class-name: com.mysql.cj.jdbc.Driver
                # 初始化时建立物理连接的个数,初始化发生在显示调用 init 方法,或者第一次 getConnection 时
                initial-size: 5
                #最小连接池数量
                min-idle: 10
                #最大连接池数量
                max-active: 60
                #用来检测连接是否有效的 sql,要求是一个查询语句   如果 validationQuery 为null,testOnBorrow、testOnReturn 、testWhileIdle 都不会起作用
                validation-query: select 1
                #申请连接时执行 validationQuery 检测连接是否有效,做了这个配置会降低性能
                #test-on-borrow: true
                #归还连接时执行 validationQuery 检测连接是否有效,做了这个配置会降低性能
                #test-while-idle: true
                ##间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒     Destory 线程会检测连接的间隔时间
                time-between-eviction-runs-millis: 60000
    redis:
        host: 127.0.0.1
        port: 6379
        database: 2
        password: 
        timeout: 5000
swagger:
    base-package: com.test
management:
    health:
        defaults:
            enabled: false
feign: 
    httpclient: 
        enabled: true
    compression: 
        request: 
            enabled: true
            mime-type: text/xml,application/json
            min-request-size: 2048
    response: 
        enabled: true
ribbon:
    ConnectTimeout: 60000 # 连接超时时间(ms)
    ReadTimeout: 60000 # 通信超时时间(ms)

hystrix:
    command:
        default:
            execution:
                isolation:
                    thread:
                        timeoutInMillisecond: 50000 # 熔断超时时长:60000ms

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

GMT+8, 2025-9-5 18:24 , Processed in 0.099764 second(s), 35 queries Archiver|手机版|小黑屋|Attic ( 京ICP备2020048627号 )

快速回复 返回顶部 返回列表