广州市综治平台后端
xusd
2025-06-11 9c5b59c61e66bfe8be20a2c02a2be2b021670ee4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#server配置
server:
  #端口
  port: 9013
 
#Spring配置
spring:
  #服务名
  application:
    name: dyh-know
  #数据源配置
  datasource:
    url: jdbc:mysql://183.2.142.21:9018/ai
    username: root
    password: hugeinfo123
    driver-class-name: com.mysql.cj.jdbc.Driver
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      stat-view-servlet:
        # 关闭 Druid 的统计视图
        enabled: false
      # 定期检查空闲连接的有效性
      test-while-idle: true
      # 用来验证数据库连接是否仍然可用的 SQL 查询
      validation-query: SELECT 1
#    dynamic:
#      enabled: true #启用动态数据源,默认true
#      primary: master #设置默认的数据源或者数据源组,默认值即为master
#      strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
#      grace-destroy: false #是否优雅关闭数据源,默认为false,设置为true时,关闭数据源时如果数据源中还存在活跃连接,至多等待10s后强制关闭
#      datasource:
#        master:
#          jdbc-url: jdbc:dm://183.2.142.46:9016?schema=HUGETEST
#          username: HUGEINFO
#          password: hugeinfo123@
#          driver-class-name: dm.jdbc.driver.DmDriver
#          type: com.alibaba.druid.pool.DruidDataSource
#        doris:
#          jdbc-url: jdbc:mysql://183.2.142.21:9018/ai
#          username: root
#          password: hugeinfo123
#          driver-class-name: com.mysql.cj.jdbc.Driver
 
  # redis配置,单机版,集群另外配置
  redis:
    host: 183.2.142.21
    port: 9017
    password: hugeinfo123
    # 使用的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
 
#ftp服务配置
ftp:
  #服务器ip地址
  hostname: 120.79.193.119
  #端口
  port: 21
  #用户名
  username: hugeinfo
  #密码
  password: hugeinfo123
  #附件存储根目录
  rootdir: /home/ftp/gzdyh
 
#科大讯飞配置
xfyun:
  host_url: https://iat-api.xfyun.cn/v2/iat
  appid: 5c7b00be
  api_secret: MGM5Mjg2ODQzYWZmNGE2YjlhOGZlMTJj
  api_key: 9e0a80ed995daf5b194f06ca336080c1
 
grid:
  url: http://219.137.166.84:8061
  username: mtxt001
  password: aek8CdcaM
  syscode: sub-mtxt