From 9c5b59c61e66bfe8be20a2c02a2be2b021670ee4 Mon Sep 17 00:00:00 2001 From: xusd <330628789@qq.com> Date: Wed, 11 Jun 2025 11:45:06 +0800 Subject: [PATCH] feature:市平台项目配置文件提交 --- dyh-service/dyh-mediate/src/main/resources/config/application-dev.yml | 145 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 145 insertions(+), 0 deletions(-) diff --git a/dyh-service/dyh-mediate/src/main/resources/config/application-dev.yml b/dyh-service/dyh-mediate/src/main/resources/config/application-dev.yml new file mode 100644 index 0000000..fe26617 --- /dev/null +++ b/dyh-service/dyh-mediate/src/main/resources/config/application-dev.yml @@ -0,0 +1,145 @@ +#server配置 +server: + #端口 + port: 9006 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-mediate + #数据源配置 + datasource: + url: jdbc:dm://183.2.142.46:9016?schema=HUGETEST + username: HUGETEST + password: hugeinfo123 + driver-class-name: dm.jdbc.driver.DmDriver + type: com.alibaba.druid.pool.DruidDataSource + druid: + test-while-idle: true + min-idle: 10 + initial-size: 10 + max-active: 50 + time-between-eviction-runs-millis: 60000 + min-evictable-idle-time-millis: 600000 + # 用来验证数据库连接是否仍然可用的 SQL 查询 + validation-query: SELECT 1 + + # redis配置,单机版,集群另外配置 + redis: + host: 183.2.142.21 + port: 9017 + password: SYSDBA + # 使用的Redis数据库索引(默认为0) + database: 0 + # 连接超时时间(毫秒) + timeout: 5000 + lettuce: + pool: + # 连接池最大连接数 + max-active: 100 + # 连接池最大阻塞等待时间 + max-wait: 100000 + # 连接池中的最大空闲连接 + max-idle: 10 + # 连接池中的最小空闲连接 + min-idle: 0 + +#注册中心配置 +eureka: + client: + service-url: + #注册中心单机 + defaultZone: http://localhost:9001/eureka + #注册中心集群 + #defaultZone: http://localhost:8761/eureka,http://localhost:8762/eureka + #是否注册到注册中心 + register-with-eureka: true + #是否从注册中心拉取注册服务列表 + fetch-registry: true + #首次注册时间 + initial-instance-info-replication-interval-seconds: 2 + #客户端定时刷新本地缓存时间 + registry-fetch-interval-seconds: 5 + instance: + prefer-ip-address: true + instance-id: ${spring.cloud.client.ip-address}:${server.port} + #心跳时间,即服务续约间隔时间(缺省为30s) + lease-renewal-interval-in-seconds: 10 + #发呆时间,即服务续约到期时间(缺省为90s) + lease-expiration-duration-in-seconds: 30 + +#hystrix配置 +hystrix: + command: + default: + execution: + timeout: + enabled: true + isolation: + thread: + timeoutInMilliseconds: 30000 + +#健康检查-按需配置 +management: + endpoint: + health: + show-details: always + endpoints: + web: + exposure: + include: "*" + server: + #port: 9021 + servlet: + context-path: / + ssl: + enabled: false +ai: + url: http://183.2.142.21:9003 + +dify: + url: http://183.2.142.10:9017/v1 + # 调解案件推荐 api + getSimilarityDyhCaseApi: app-oECo6sP42ovAG1t61xxdYu5L + getSimilarityDyhCaseNum: 3 + # 判决案件推荐 api + getSimilarityCpwsCaseApi: app-Ju71MwdRJBliWxxVWw3tAqdY + # getSimilarityCpwsCaseNum: 3 + # 案件风险等级 api + getCaseRiskApi: app-HJjrkmMo1Vt1vKraFatvvx51 + # 法条推荐 api + getCaseLawApi: app-BuYAQTMtSH3nf13DKE9vdkEB + getCaseLawNum: 10 + # 调解策略生成 api + getMediateStrategyApi: app-mma72CikdKAaUIdOKUPztwbs + # 调解案件对话api + getMediateCaseDialogApi: app-bIzaVJGkoi4b8xjqp5mnX3Co + # 物业对话api测试版本 + getPropertyDialogApi: app-pc7L7V3pQVM6uNsj42i0HJYV + # 访问者名称 + user: hugeinfo-dev + +#ftp服务配置 +ftp: + #服务器ip地址 + hostname: 120.79.193.119 + #端口 + port: 21 + #用户名 + username: hugeinfo + #密码 + password: hugeinfo123 + #附件存储根目录 + rootdir: /home/ftp/gzdyh + +# Swagger配置 +swagger: + enabled: true + title: 纠纷调解系统API文档 + description: 纠纷调解系统接口文档 + version: 1.0.0 + contact: + name: hugeinfo + url: http://www.hugeinfo.com.cn/ + email: contact@hugeinfo.com.cn \ No newline at end of file -- Gitblit v1.8.0