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-cust/src/main/resources/config/application-test.yml | 99 + dyh-service/dyh-disp/src/main/resources/config/application-dev.yml | 97 + dyh-service/dyh-cust/src/main/resources/config/application-dev.yml | 97 + dyh-service/dyh-sys/src/main/resources/config/application-prod.yml | 124 ++ dyh-service/dyh-utils/src/main/resources/config/application-dev.yml | 77 + .gitignore | 2 dyh-service/dyh-know/src/main/resources/config/application.yml | 63 + dyh-service/dyh-mediate/src/main/resources/config/application-test.yml | 148 ++ dyh-service/dyh-mediate/src/main/resources/config/application-prod.yml | 148 ++ dyh-service/dyh-sys/src/main/resources/config/application-test.yml | 124 ++ dyh-service/dyh-sys/src/main/resources/config/application-dev.yml | 123 ++ dyh-service/dyh-sys/src/main/resources/config/application.yml | 63 + dyh-service/dyh-utils/src/main/resources/config/application-prod.yml | 77 + dyh-service/dyh-sync-bydyh/src/main/resources/config/application-prod.yml | 71 + dyh-service/dyh-utils/src/main/resources/config/application.yml | 80 + dyh-service/dyh-sync-ssim/src/main/resources/config/application.yml | 71 + dyh-service/dyh-mediate/src/main/resources/config/application.yml | 77 + dyh-service/dyh-mediate/src/main/resources/config/application-dev.yml | 145 ++ dyh-service/dyh-utils/src/main/resources/config/application-test.yml | 77 + dyh-service/dyh-sync-bydyh/src/main/resources/config/application-dev.yml | 71 + dyh-service/dyh-know/src/main/resources/config/application-prod.yml | 104 ++ dyh-service/dyh-know/src/main/resources/config/application-test.yml | 104 ++ dyh-service/dyh-sync-bydyh/src/main/resources/config/application-test.yml | 71 + dyh-service/dyh-disp/src/main/resources/config/application.yml | 63 + dyh-service/dyh-sync-ssim/src/main/resources/config/application-test.yml | 112 ++ dyh-service/dyh-sync-ssim/src/main/resources/config/application-prod.yml | 114 ++ dyh-service/dyh-cust/src/main/resources/config/application.yml | 82 + dyh-service/dyh-cust/src/main/resources/config/application-prod.yml | 99 + dyh-service/dyh-sync-ssim/src/main/resources/config/application-dev.yml | 112 ++ dyh-service/dyh-disp/src/main/resources/config/application-prod.yml | 97 + dyh-service/dyh-sync-bydyh/src/main/resources/config/application.yml | 77 + dyh-service/dyh-disp/src/main/resources/config/application-test.yml | 97 + dyh-service/dyh-know/src/main/resources/config/application-dev.yml | 139 ++ 33 files changed, 3,104 insertions(+), 1 deletions(-) diff --git a/.gitignore b/.gitignore index 007f03e..b949292 100644 --- a/.gitignore +++ b/.gitignore @@ -39,7 +39,7 @@ *.iml *.gitignore *.log -*.yml + target logs diff --git a/dyh-service/dyh-cust/src/main/resources/config/application-dev.yml b/dyh-service/dyh-cust/src/main/resources/config/application-dev.yml new file mode 100644 index 0000000..7af95f0 --- /dev/null +++ b/dyh-service/dyh-cust/src/main/resources/config/application-dev.yml @@ -0,0 +1,97 @@ +#server配置 +server: + #端口 + port: 9004 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-cust + #数据源配置 + datasource: + 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 + 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: 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 \ No newline at end of file diff --git a/dyh-service/dyh-cust/src/main/resources/config/application-prod.yml b/dyh-service/dyh-cust/src/main/resources/config/application-prod.yml new file mode 100644 index 0000000..3da9184 --- /dev/null +++ b/dyh-service/dyh-cust/src/main/resources/config/application-prod.yml @@ -0,0 +1,99 @@ +#server配置 +server: + #端口 + port: 9004 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-cust + #数据源配置 + datasource: + url: jdbc:dm://10.202.1.61:5236?schema=HUGEINFO + username: HUGEINFO + password: Hugeinfo@123 + driver-class-name: dm.jdbc.driver.DmDriver + type: com.alibaba.druid.pool.DruidDataSource + druid: + stat-view-servlet: + enabled: false + 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: 10.202.1.72 + port: 6379 + 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://10.202.1.73: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 \ No newline at end of file diff --git a/dyh-service/dyh-cust/src/main/resources/config/application-test.yml b/dyh-service/dyh-cust/src/main/resources/config/application-test.yml new file mode 100644 index 0000000..1a9a66f --- /dev/null +++ b/dyh-service/dyh-cust/src/main/resources/config/application-test.yml @@ -0,0 +1,99 @@ +#server配置 +server: + #端口 + port: 9004 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-cust + #数据源配置 + datasource: + url: jdbc:dm://10.202.1.63:5236?schema=HUGETEST + username: HUGETEST + password: Hugeinfo@123 + driver-class-name: dm.jdbc.driver.DmDriver + type: com.alibaba.druid.pool.DruidDataSource + druid: + stat-view-servlet: + enabled: false + 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: 10.202.1.72 + port: 6379 + 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://10.202.1.75: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 \ No newline at end of file diff --git a/dyh-service/dyh-cust/src/main/resources/config/application.yml b/dyh-service/dyh-cust/src/main/resources/config/application.yml new file mode 100644 index 0000000..c081bfb --- /dev/null +++ b/dyh-service/dyh-cust/src/main/resources/config/application.yml @@ -0,0 +1,82 @@ +#Spring配置 +spring: + profiles: + active: +# - dev +# - test + - prod + + devtools: + restart: + enabled: true + servlet: + multipart: + max-file-size: -1 + max-request-size: -1 + main: + #可以重复命名配置 + allow-bean-definition-overriding: true + allow-circular-references: true + +#server配置 +server: + #服务时限配置 + tomcat: + min-spare-threads: 100 + max-threads: 256 + connection-timeout: 8000 + main: + #可以重复命名配置 + allow-bean-definition-overriding: true + +#ribbon配置 +ribbon: + #服务之间调用,请求处理超时时间 + ReadTimeout: 120000 + #服务之间调用,请求连接的超时时间 + ConnectTimeout: 30000 + +#mybatis-plus配置 +mybatis-plus: + configuration: + #控制台输出sql语句 + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl +# log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl + #配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as) + ap-underscore-to-camel-case: true + #如何自动映射列到字段或属性,NONE:表示取消自动映射;PARTIAL:只会自动映射没有定义嵌套结果集映射的结果集。FULL:会自动映射任意复杂的结果集(无论是否嵌套)。默认是partial,这是一种全局设置 + auto-mapping-behavior: full + global-config: + db-config: + #驼峰下划线转换 + column-underline: false + #数据库大写下划线转换 + capital-mode: true + #全局逻辑删除的实体字段名 + #logic-delete-field: flag + #逻辑未删除值(默认为 0),实体类字段需要加上@TableLogic + logic-not-delete-value: 0 + #逻辑已删除值(默认为 1) + logic-delete-value: 1 + #字段策略,IGNORED:忽略判断,NOT_NULL:非null判断,NOT_EMPTY:非空判断,DEFAULT:默认,NEVER:不加入sql + update-strategy: IGNORED + mapper-locations: classpath*:/cn/huge/*/*/dao/mapper/xml/*Mapper.xml + +#JWT配置 +jwt: + #jwt生成密钥 + secret-key: asdfghjkl + #用户 + iss-user: HUGEINFO + refresh-token-key: + #refreshToken 存储key + format: JWT_REFRESH_TOKEN::%s + blacklist-key: + #token黑名单 存储key + format: JWT_BLACKLIST::%s + token: + #token过期时间:12小时 + expire-time: 43200000 + refresh-token: + #refreshToken过期时间:13小时,比token时间长一点 + expire-time: 46800000 \ No newline at end of file diff --git a/dyh-service/dyh-disp/src/main/resources/config/application-dev.yml b/dyh-service/dyh-disp/src/main/resources/config/application-dev.yml new file mode 100644 index 0000000..d86aff8 --- /dev/null +++ b/dyh-service/dyh-disp/src/main/resources/config/application-dev.yml @@ -0,0 +1,97 @@ +#server配置 +server: + #端口 + port: 9005 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-disp + #数据源配置 + datasource: + 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 + 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: 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 \ No newline at end of file diff --git a/dyh-service/dyh-disp/src/main/resources/config/application-prod.yml b/dyh-service/dyh-disp/src/main/resources/config/application-prod.yml new file mode 100644 index 0000000..f0cbe8b --- /dev/null +++ b/dyh-service/dyh-disp/src/main/resources/config/application-prod.yml @@ -0,0 +1,97 @@ +#server配置 +server: + #端口 + port: 9005 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-disp + #数据源配置 + datasource: + url: jdbc:dm://10.202.1.61:5236?schema=HUGEINFO + username: HUGEINFO + password: Hugeinfo@123 + 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: 10.202.1.72 + port: 6379 + 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://10.202.1.73: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 \ No newline at end of file diff --git a/dyh-service/dyh-disp/src/main/resources/config/application-test.yml b/dyh-service/dyh-disp/src/main/resources/config/application-test.yml new file mode 100644 index 0000000..eee2bf2 --- /dev/null +++ b/dyh-service/dyh-disp/src/main/resources/config/application-test.yml @@ -0,0 +1,97 @@ +#server配置 +server: + #端口 + port: 9005 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-disp + #数据源配置 + datasource: + url: jdbc:dm://10.202.1.63:5236?schema=HUGETEST + username: HUGETEST + password: Hugeinfo@123 + 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: 10.202.1.72 + port: 6379 + 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://10.202.1.75: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 \ No newline at end of file diff --git a/dyh-service/dyh-disp/src/main/resources/config/application.yml b/dyh-service/dyh-disp/src/main/resources/config/application.yml new file mode 100644 index 0000000..d7e0351 --- /dev/null +++ b/dyh-service/dyh-disp/src/main/resources/config/application.yml @@ -0,0 +1,63 @@ +#Spring配置 +spring: + profiles: + active: +# - dev +# - test + - prod + + devtools: + restart: + enabled: true + servlet: + multipart: + max-file-size: -1 + max-request-size: -1 + main: + #可以重复命名配置 + allow-bean-definition-overriding: true + allow-circular-references: true + +#server配置 +server: + #服务时限配置 + tomcat: + min-spare-threads: 100 + max-threads: 256 + connection-timeout: 8000 + main: + #可以重复命名配置 + allow-bean-definition-overriding: true + +#ribbon配置 +ribbon: + #服务之间调用,请求处理超时时间 + ReadTimeout: 120000 + #服务之间调用,请求连接的超时时间 + ConnectTimeout: 30000 + +#mybatis-plus配置 +mybatis-plus: + configuration: + #控制台输出sql语句 + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + # log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl + #配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as) + ap-underscore-to-camel-case: true + #如何自动映射列到字段或属性,NONE:表示取消自动映射;PARTIAL:只会自动映射没有定义嵌套结果集映射的结果集。FULL:会自动映射任意复杂的结果集(无论是否嵌套)。默认是partial,这是一种全局设置 + auto-mapping-behavior: full + global-config: + db-config: + #驼峰下划线转换 + column-underline: false + #数据库大写下划线转换 + capital-mode: true + #全局逻辑删除的实体字段名 + #logic-delete-field: flag + #逻辑未删除值(默认为 0),实体类字段需要加上@TableLogic + logic-not-delete-value: 0 + #逻辑已删除值(默认为 1) + logic-delete-value: 1 + #字段策略,IGNORED:忽略判断,NOT_NULL:非null判断,NOT_EMPTY:非空判断,DEFAULT:默认,NEVER:不加入sql + update-strategy: IGNORED + mapper-locations: classpath*:/cn/huge/*/*/dao/mapper/xml/*Mapper.xml \ No newline at end of file diff --git a/dyh-service/dyh-know/src/main/resources/config/application-dev.yml b/dyh-service/dyh-know/src/main/resources/config/application-dev.yml new file mode 100644 index 0000000..bbebe26 --- /dev/null +++ b/dyh-service/dyh-know/src/main/resources/config/application-dev.yml @@ -0,0 +1,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 \ No newline at end of file diff --git a/dyh-service/dyh-know/src/main/resources/config/application-prod.yml b/dyh-service/dyh-know/src/main/resources/config/application-prod.yml new file mode 100644 index 0000000..d76338a --- /dev/null +++ b/dyh-service/dyh-know/src/main/resources/config/application-prod.yml @@ -0,0 +1,104 @@ +#server配置 +server: + #端口 + port: 9013 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-know + #数据源配置 + datasource: + url: jdbc:mysql://10.202.1.65:9030/ai + username: root + password: 2olWWmhtaffo0nWO@huge + 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 + + # 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://10.202.1.73: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 + + + +xfyun: + host_url: https://iat-api.xfyun.cn/v2/iat + appid: 5c7b00be + api_secret: MGM5Mjg2ODQzYWZmNGE2YjlhOGZlMTJj + api_key: 9e0a80ed995daf5b194f06ca336080c1 diff --git a/dyh-service/dyh-know/src/main/resources/config/application-test.yml b/dyh-service/dyh-know/src/main/resources/config/application-test.yml new file mode 100644 index 0000000..f8ca6c2 --- /dev/null +++ b/dyh-service/dyh-know/src/main/resources/config/application-test.yml @@ -0,0 +1,104 @@ +#server配置 +server: + #端口 + port: 9013 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-know + #数据源配置 + datasource: + url: jdbc:mysql://10.202.1.65:9030/ai + username: root + password: 2olWWmhtaffo0nWO@huge + 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 + + # 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://10.202.1.75: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 + + +xfyun: + host_url: https://iat-api.xfyun.cn/v2/iat + appid: 5c7b00be + api_secret: MGM5Mjg2ODQzYWZmNGE2YjlhOGZlMTJj + api_key: 9e0a80ed995daf5b194f06ca336080c1 + diff --git a/dyh-service/dyh-know/src/main/resources/config/application.yml b/dyh-service/dyh-know/src/main/resources/config/application.yml new file mode 100644 index 0000000..f1b17fc --- /dev/null +++ b/dyh-service/dyh-know/src/main/resources/config/application.yml @@ -0,0 +1,63 @@ +#Spring配置 +spring: + profiles: + active: +# - dev + - test +# - prod + + devtools: + restart: + enabled: true + servlet: + multipart: + max-file-size: -1 + max-request-size: -1 + main: + #可以重复命名配置 + allow-bean-definition-overriding: true + +#server配置 +server: + #服务时限配置 + tomcat: + min-spare-threads: 100 + max-threads: 256 + connection-timeout: 8000 + main: + #可以重复命名配置 + allow-bean-definition-overriding: true + allow-circular-references: true + +#ribbon配置 +ribbon: + #服务之间调用,请求处理超时时间 + ReadTimeout: 120000 + #服务之间调用,请求连接的超时时间 + ConnectTimeout: 30000 + +#mybatis-plus配置 +mybatis-plus: + configuration: + #控制台输出sql语句 + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + # log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl + #配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as) + ap-underscore-to-camel-case: true + #如何自动映射列到字段或属性,NONE:表示取消自动映射;PARTIAL:只会自动映射没有定义嵌套结果集映射的结果集。FULL:会自动映射任意复杂的结果集(无论是否嵌套)。默认是partial,这是一种全局设置 + auto-mapping-behavior: full + global-config: + db-config: + #驼峰下划线转换 + column-underline: false + #数据库大写下划线转换 + capital-mode: true + #全局逻辑删除的实体字段名 + #logic-delete-field: flag + #逻辑未删除值(默认为 0),实体类字段需要加上@TableLogic + logic-not-delete-value: 0 + #逻辑已删除值(默认为 1) + logic-delete-value: 1 + #字段策略,IGNORED:忽略判断,NOT_NULL:非null判断,NOT_EMPTY:非空判断,DEFAULT:默认,NEVER:不加入sql + update-strategy: IGNORED + mapper-locations: classpath*:/cn/huge/*/*/dao/mapper/xml/*Mapper.xml \ No newline at end of file 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 diff --git a/dyh-service/dyh-mediate/src/main/resources/config/application-prod.yml b/dyh-service/dyh-mediate/src/main/resources/config/application-prod.yml new file mode 100644 index 0000000..7a498bf --- /dev/null +++ b/dyh-service/dyh-mediate/src/main/resources/config/application-prod.yml @@ -0,0 +1,148 @@ +#server配置 +server: + #端口 + port: 9008 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-mediate + #数据源配置 + datasource: + url: jdbc:dm://10.202.1.61:5236?schema=HUGEINFO + username: HUGEINFO + password: Hugeinfo@123 + driver-class-name: dm.jdbc.driver.DmDriver + type: com.alibaba.druid.pool.DruidDataSource + druid: + stat-view-servlet: + enabled: false + 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: 10.202.1.72 + port: 6379 + 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 + +ai: + url: http://10.202.1.101:9103 + +dify: + url: http://10.202.1.102:9002/v1 + # 调解案件推荐 api + getSimilarityDyhCaseApi: app-kvmALHLJAFjYrYNjdUhg3Ffs + getSimilarityDyhCaseNum: 3 + # 判决案件推荐 api + getSimilarityCpwsCaseApi: app-di1G8MkjumEGuO7ARXJQkMkB + # getSimilarityCpwsCaseNum: 3 + # 案件风险等级 api + getCaseRiskApi: app-umpBN6dDGGKlrTfbhgfYk1Yx + # 法条推荐 api + getCaseLawApi: app-M8QMq4OCgv0Z9JWwepWbjIxy + # 调解策略生成 api + getMediateStrategyApi: app-mma72CikdKAaUIdOKUPztwbs + # 调解案件对话api + getMediateCaseDialogApi: app-bIzaVJGkoi4b8xjqp5mnX3Co + getCaseLawNum: 10 + # 物业对话api测试版本 + getPropertyDialogApi: app-pc7L7V3pQVM6uNsj42i0HJYV + # 访问者名称 + user: hugeinfo-prod + +#ftp服务配置 +ftp: + #服务器ip地址 + hostname: 10.202.1.61 + #端口 + port: 21 + #用户名 + username: hugeinfo + #密码 + password: hugeinfo123 + #附件存储根目录 + rootdir: /dmdata/ftp/gzdyh + +# Swagger配置 +swagger: + enabled: false + 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 diff --git a/dyh-service/dyh-mediate/src/main/resources/config/application-test.yml b/dyh-service/dyh-mediate/src/main/resources/config/application-test.yml new file mode 100644 index 0000000..8f782fb --- /dev/null +++ b/dyh-service/dyh-mediate/src/main/resources/config/application-test.yml @@ -0,0 +1,148 @@ +#server配置 +server: + #端口 + port: 9008 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-mediate + #数据源配置 + datasource: + url: jdbc:dm://10.202.1.63:5236?schema=HUGETEST + username: HUGETEST + password: Hugeinfo@123 + driver-class-name: dm.jdbc.driver.DmDriver + type: com.alibaba.druid.pool.DruidDataSource + druid: + stat-view-servlet: + enabled: false + 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: 10.202.1.72 + port: 6379 + 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 + +ai: + url: http://10.202.1.101:9103 + +dify: + url: http://10.202.1.102:9002/v1 + # 调解案件推荐 api + getSimilarityDyhCaseApi: app-kvmALHLJAFjYrYNjdUhg3Ffs + getSimilarityDyhCaseNum: 3 + # 判决案件推荐 api + getSimilarityCpwsCaseApi: app-di1G8MkjumEGuO7ARXJQkMkB + # getSimilarityCpwsCaseNum: 3 + # 案件风险等级 api + getCaseRiskApi: app-umpBN6dDGGKlrTfbhgfYk1Yx + # 法条推荐 api + getCaseLawApi: app-M8QMq4OCgv0Z9JWwepWbjIxy + # 调解策略生成 api + getMediateStrategyApi: app-mma72CikdKAaUIdOKUPztwbs + # 调解案件对话api + getMediateCaseDialogApi: app-bIzaVJGkoi4b8xjqp5mnX3Co + getCaseLawNum: 10 + # 物业对话api测试版本 + getPropertyDialogApi: app-pc7L7V3pQVM6uNsj42i0HJYV + # 访问者名称 + user: hugeinfo-test + +#ftp服务配置 +ftp: + #服务器ip地址 + hostname: 10.202.1.63 + #端口 + port: 21 + #用户名 + username: hugeinfo + #密码 + password: hugeinfo123 + #附件存储根目录 + rootdir: /dmdata/ftp/gzdyh + +# Swagger配置 +swagger: + enabled: false + 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 diff --git a/dyh-service/dyh-mediate/src/main/resources/config/application.yml b/dyh-service/dyh-mediate/src/main/resources/config/application.yml new file mode 100644 index 0000000..8e57553 --- /dev/null +++ b/dyh-service/dyh-mediate/src/main/resources/config/application.yml @@ -0,0 +1,77 @@ +#Spring配置 +spring: + profiles: + active: +# - dev +# - test + - prod + + devtools: + restart: + enabled: true + servlet: + multipart: + max-file-size: -1 + max-request-size: -1 + main: + #可以重复命名配置 + allow-bean-definition-overriding: true + allow-circular-references: true + # Swagger配置 + mvc: + pathmatch: + matching-strategy: ANT_PATH_MATCHER + +#server配置 +server: + #服务时限配置 + tomcat: + min-spare-threads: 100 + max-threads: 256 + connection-timeout: 8000 + main: + #可以重复命名配置 + allow-bean-definition-overriding: true + + + +#ribbon配置 +ribbon: + #服务之间调用,请求处理超时时间 + ReadTimeout: 120000 + #服务之间调用,请求连接的超时时间 + ConnectTimeout: 30000 + +#mybatis-plus配置 +mybatis-plus: + configuration: + #控制台输出sql语句 + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl +# log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl + #配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as) + ap-underscore-to-camel-case: true + #如何自动映射列到字段或属性,NONE:表示取消自动映射;PARTIAL:只会自动映射没有定义嵌套结果集映射的结果集。FULL:会自动映射任意复杂的结果集(无论是否嵌套)。默认是partial,这是一种全局设置 + auto-mapping-behavior: full + global-config: + db-config: + #驼峰下划线转换 + column-underline: false + #数据库大写下划线转换 + capital-mode: true + #全局逻辑删除的实体字段名 + #logic-delete-field: flag + #逻辑未删除值(默认为 0),实体类字段需要加上@TableLogic + logic-not-delete-value: 0 + #逻辑已删除值(默认为 1) + logic-delete-value: 1 + #字段策略,IGNORED:忽略判断,NOT_NULL:非null判断,NOT_EMPTY:非空判断,DEFAULT:默认,NEVER:不加入sql + update-strategy: IGNORED + mapper-locations: classpath*:/cn/huge/*/*/dao/mapper/xml/*Mapper.xml, classpath:/META-INF/modeler-mybatis-mappings/*.xml + configuration-properties: + blobType: BLOB + boolValue: TRUE + prefix: + +#flowable配置 +flowable: + async-executor-activate: false \ No newline at end of file diff --git a/dyh-service/dyh-sync-bydyh/src/main/resources/config/application-dev.yml b/dyh-service/dyh-sync-bydyh/src/main/resources/config/application-dev.yml new file mode 100644 index 0000000..e9c5341 --- /dev/null +++ b/dyh-service/dyh-sync-bydyh/src/main/resources/config/application-dev.yml @@ -0,0 +1,71 @@ +#server配置 +server: + #端口 + port: 9010 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-sync-bydyh + #数据源配置 + datasource: + url: jdbc:mysql://120.79.193.119:3306/bydyh2.0_v101_prod?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true + username: root + password: hugeinfo123 + driver-class-name: com.mysql.jdbc.Driver + type: com.alibaba.druid.pool.DruidDataSource + druid: + stat-view-servlet: + enabled: false + +#注册中心配置 +eureka: + client: + service-url: + #注册中心单机 + defaultZone: http://localhost:9000/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 diff --git a/dyh-service/dyh-sync-bydyh/src/main/resources/config/application-prod.yml b/dyh-service/dyh-sync-bydyh/src/main/resources/config/application-prod.yml new file mode 100644 index 0000000..e9c5341 --- /dev/null +++ b/dyh-service/dyh-sync-bydyh/src/main/resources/config/application-prod.yml @@ -0,0 +1,71 @@ +#server配置 +server: + #端口 + port: 9010 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-sync-bydyh + #数据源配置 + datasource: + url: jdbc:mysql://120.79.193.119:3306/bydyh2.0_v101_prod?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true + username: root + password: hugeinfo123 + driver-class-name: com.mysql.jdbc.Driver + type: com.alibaba.druid.pool.DruidDataSource + druid: + stat-view-servlet: + enabled: false + +#注册中心配置 +eureka: + client: + service-url: + #注册中心单机 + defaultZone: http://localhost:9000/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 diff --git a/dyh-service/dyh-sync-bydyh/src/main/resources/config/application-test.yml b/dyh-service/dyh-sync-bydyh/src/main/resources/config/application-test.yml new file mode 100644 index 0000000..e9c5341 --- /dev/null +++ b/dyh-service/dyh-sync-bydyh/src/main/resources/config/application-test.yml @@ -0,0 +1,71 @@ +#server配置 +server: + #端口 + port: 9010 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-sync-bydyh + #数据源配置 + datasource: + url: jdbc:mysql://120.79.193.119:3306/bydyh2.0_v101_prod?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true + username: root + password: hugeinfo123 + driver-class-name: com.mysql.jdbc.Driver + type: com.alibaba.druid.pool.DruidDataSource + druid: + stat-view-servlet: + enabled: false + +#注册中心配置 +eureka: + client: + service-url: + #注册中心单机 + defaultZone: http://localhost:9000/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 diff --git a/dyh-service/dyh-sync-bydyh/src/main/resources/config/application.yml b/dyh-service/dyh-sync-bydyh/src/main/resources/config/application.yml new file mode 100644 index 0000000..9d26152 --- /dev/null +++ b/dyh-service/dyh-sync-bydyh/src/main/resources/config/application.yml @@ -0,0 +1,77 @@ +#Spring配置 +spring: + profiles: + active: + - dev +# - test +# - prod + devtools: + restart: + enabled: true + servlet: + multipart: + max-file-size: -1 + max-request-size: -1 + main: + #可以重复命名配置 + allow-bean-definition-overriding: true + allow-circular-references: true + + +#server配置 +server: + #服务时限配置 + tomcat: + min-spare-threads: 100 + max-threads: 256 + connection-timeout: 80000 + +#ribbon配置 +ribbon: + #服务之间调用,请求处理超时时间 + ReadTimeout: 120000 + #服务之间调用,请求连接的超时时间 + ConnectTimeout: 30000 + +#mybatis-plus配置 +mybatis-plus: + configuration: + #控制台输出sql语句 + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + #配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as) + ap-underscore-to-camel-case: true + #如何自动映射列到字段或属性,NONE:表示取消自动映射;PARTIAL:只会自动映射没有定义嵌套结果集映射的结果集。FULL:会自动映射任意复杂的结果集(无论是否嵌套)。默认是partial,这是一种全局设置 + auto-mapping-behavior: full + global-config: + db-config: + #驼峰下划线转换 + column-underline: false + #数据库大写下划线转换 + capital-mode: true + #全局逻辑删除的实体字段名 + #logic-delete-field: flag + #逻辑未删除值(默认为 1),实体类字段需要加上@TableLogic + logic-not-delete-value: 1 + #逻辑已删除值(默认为 99) + logic-delete-value: 99 + #字段策略,IGNORED:忽略判断,NOT_NULL:非null判断,NOT_EMPTY:非空判断,DEFAULT:默认,NEVER:不加入sql + update-strategy: IGNORED + mapper-locations: classpath*:/cn/huge/*/*/dao/mapper/xml/*Mapper.xml + +#JWT配置 +jwt: + #jwt生成密钥 + secret-key: asdfghjkl + refresh-token-key: + #refreshToken 存储key + format: JWT_REFRESH_TOKEN::%s + blacklist-key: + #token黑名单 存储key + format: JWT_BLACKLIST::%s + token: + #token过期时间:12小时 + expire-time: 43200000 + refresh-token: + #refreshToken过期时间:13小时,比token时间长一点 + expire-time: 46800000 + diff --git a/dyh-service/dyh-sync-ssim/src/main/resources/config/application-dev.yml b/dyh-service/dyh-sync-ssim/src/main/resources/config/application-dev.yml new file mode 100644 index 0000000..9d9b19c --- /dev/null +++ b/dyh-service/dyh-sync-ssim/src/main/resources/config/application-dev.yml @@ -0,0 +1,112 @@ +#server配置 +server: + #端口 + port: 9021 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-sync-ssim + #数据源配置 + datasource: + url: jdbc:mysql://120.79.193.119:3306/gzdyh-grid?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true + username: root + password: hugeinfo123 + driver-class-name: com.mysql.cj.jdbc.Driver + 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 + +#ftp服务配置 +ftp: + #服务器ip地址 + hostname: 120.79.193.119 + #端口 + port: 21 + #用户名 + username: hugeinfo + #密码 + password: hugeinfo123 + #附件存储根目录 + rootdir: /home/ftp/gzdyh \ No newline at end of file diff --git a/dyh-service/dyh-sync-ssim/src/main/resources/config/application-prod.yml b/dyh-service/dyh-sync-ssim/src/main/resources/config/application-prod.yml new file mode 100644 index 0000000..955dcfa --- /dev/null +++ b/dyh-service/dyh-sync-ssim/src/main/resources/config/application-prod.yml @@ -0,0 +1,114 @@ +#server配置 +server: + #端口 + port: 9012 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-sync-ssim + #数据源配置 + datasource: + url: jdbc:mysql://120.196.49.138:8086/db_maotiao?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false + username: usermt + password: 2025byMTga8@#*p + driver-class-name: com.mysql.cj.jdbc.Driver + type: com.alibaba.druid.pool.DruidDataSource + druid: + stat-view-servlet: + enabled: false + 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 + +#ftp服务配置 +ftp: + #服务器ip地址 + hostname: 120.79.193.119 + #端口 + port: 21 + #用户名 + username: hugeinfo + #密码 + password: hugeinfo123 + #附件存储根目录 + rootdir: /home/ftp/gzdyh \ No newline at end of file diff --git a/dyh-service/dyh-sync-ssim/src/main/resources/config/application-test.yml b/dyh-service/dyh-sync-ssim/src/main/resources/config/application-test.yml new file mode 100644 index 0000000..9d9b19c --- /dev/null +++ b/dyh-service/dyh-sync-ssim/src/main/resources/config/application-test.yml @@ -0,0 +1,112 @@ +#server配置 +server: + #端口 + port: 9021 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-sync-ssim + #数据源配置 + datasource: + url: jdbc:mysql://120.79.193.119:3306/gzdyh-grid?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true + username: root + password: hugeinfo123 + driver-class-name: com.mysql.cj.jdbc.Driver + 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 + +#ftp服务配置 +ftp: + #服务器ip地址 + hostname: 120.79.193.119 + #端口 + port: 21 + #用户名 + username: hugeinfo + #密码 + password: hugeinfo123 + #附件存储根目录 + rootdir: /home/ftp/gzdyh \ No newline at end of file diff --git a/dyh-service/dyh-sync-ssim/src/main/resources/config/application.yml b/dyh-service/dyh-sync-ssim/src/main/resources/config/application.yml new file mode 100644 index 0000000..3d78817 --- /dev/null +++ b/dyh-service/dyh-sync-ssim/src/main/resources/config/application.yml @@ -0,0 +1,71 @@ +#Spring配置 +spring: + profiles: + active: +# - dev + - test +# - prod + + devtools: + restart: + enabled: true + servlet: + multipart: + max-file-size: -1 + max-request-size: -1 + main: + #可以重复命名配置 + allow-bean-definition-overriding: true + allow-circular-references: true + +#server配置 +server: + #服务时限配置 + tomcat: + min-spare-threads: 100 + max-threads: 256 + connection-timeout: 8000 + main: + #可以重复命名配置 + allow-bean-definition-overriding: true + +#ribbon配置 +ribbon: + #服务之间调用,请求处理超时时间 + ReadTimeout: 120000 + #服务之间调用,请求连接的超时时间 + ConnectTimeout: 30000 + +#mybatis-plus配置 +mybatis-plus: + configuration: + #控制台输出sql语句 + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + # log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl + #配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as) + ap-underscore-to-camel-case: true + #如何自动映射列到字段或属性,NONE:表示取消自动映射;PARTIAL:只会自动映射没有定义嵌套结果集映射的结果集。FULL:会自动映射任意复杂的结果集(无论是否嵌套)。默认是partial,这是一种全局设置 + auto-mapping-behavior: full + global-config: + db-config: + #驼峰下划线转换 + column-underline: false + #数据库大写下划线转换 + capital-mode: true + #全局逻辑删除的实体字段名 + #logic-delete-field: flag + #逻辑未删除值(默认为 0),实体类字段需要加上@TableLogic + logic-not-delete-value: 0 + #逻辑已删除值(默认为 1) + logic-delete-value: 1 + #字段策略,IGNORED:忽略判断,NOT_NULL:非null判断,NOT_EMPTY:非空判断,DEFAULT:默认,NEVER:不加入sql + update-strategy: IGNORED + mapper-locations: classpath*:/cn/huge/*/*/dao/mapper/xml/*Mapper.xml, classpath:/META-INF/modeler-mybatis-mappings/*.xml + configuration-properties: + blobType: BLOB + boolValue: TRUE + prefix: + +#flowable配置 +flowable: + async-executor-activate: false \ No newline at end of file diff --git a/dyh-service/dyh-sys/src/main/resources/config/application-dev.yml b/dyh-service/dyh-sys/src/main/resources/config/application-dev.yml new file mode 100644 index 0000000..aebebdc --- /dev/null +++ b/dyh-service/dyh-sys/src/main/resources/config/application-dev.yml @@ -0,0 +1,123 @@ +#server配置 +server: + #端口 + port: 9007 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-sys + #数据源配置 + datasource: + 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 + 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: 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 \ No newline at end of file diff --git a/dyh-service/dyh-sys/src/main/resources/config/application-prod.yml b/dyh-service/dyh-sys/src/main/resources/config/application-prod.yml new file mode 100644 index 0000000..9d2a46c --- /dev/null +++ b/dyh-service/dyh-sys/src/main/resources/config/application-prod.yml @@ -0,0 +1,124 @@ +#server配置 +server: + #端口 + port: 9007 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-sys + #数据源配置 + datasource: + url: jdbc:dm://10.202.1.61:5236?schema=HUGEINFO + username: HUGEINFO + password: Hugeinfo@123 + 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: 10.202.1.72 + port: 6379 + 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: 10.202.1.61 + #端口 + port: 21 + #用户名 + username: hugeinfo + #密码 + password: hugeinfo123 + #附件存储根目录 + rootdir: /dmdata/ftp/gzdyh + +xfyun: + host_url: https://iat-api.xfyun.cn/v2/iat + appid: 5c7b00be + api_secret: MGM5Mjg2ODQzYWZmNGE2YjlhOGZlMTJj + api_key: 9e0a80ed995daf5b194f06ca336080c1 + +grid: + url: http://10.202.1.46:9091 + username: mtxt001 + password: kd*cCoAb + syscode: sub-mtxt + passid: b08c0ec0-772d-caf8-5c9b-1f7d86295a95 + secret: BZb2hLCx05 \ No newline at end of file diff --git a/dyh-service/dyh-sys/src/main/resources/config/application-test.yml b/dyh-service/dyh-sys/src/main/resources/config/application-test.yml new file mode 100644 index 0000000..a8e0142 --- /dev/null +++ b/dyh-service/dyh-sys/src/main/resources/config/application-test.yml @@ -0,0 +1,124 @@ +#server配置 +server: + #端口 + port: 9007 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-sys + #数据源配置 + datasource: + url: jdbc:dm://10.202.1.63:5236?schema=HUGETEST + username: HUGETEST + password: Hugeinfo@123 + 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: 10.202.1.72 + port: 6379 + 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: 10.202.1.63 + #端口 + port: 21 + #用户名 + username: hugeinfo + #密码 + password: hugeinfo123 + #附件存储根目录 + rootdir: /dmdata/ftp/gzdyh + +xfyun: + host_url: https://iat-api.xfyun.cn/v2/iat + appid: 5c7b00be + api_secret: MGM5Mjg2ODQzYWZmNGE2YjlhOGZlMTJj + api_key: 9e0a80ed995daf5b194f06ca336080c1 + +grid: + url: http://10.202.1.50:9091 + username: mtxt001 + password: kd*cCoAb + syscode: sub-mtxt + passid: b08c0ec0-772d-caf8-5c9b-1f7d86295a95 + secret: BZb2hLCx05 \ No newline at end of file diff --git a/dyh-service/dyh-sys/src/main/resources/config/application.yml b/dyh-service/dyh-sys/src/main/resources/config/application.yml new file mode 100644 index 0000000..1966af6 --- /dev/null +++ b/dyh-service/dyh-sys/src/main/resources/config/application.yml @@ -0,0 +1,63 @@ +#Spring配置 +spring: + profiles: + active: +# - dev +# - test + - prod + + devtools: + restart: + enabled: true + servlet: + multipart: + max-file-size: -1 + max-request-size: -1 + main: + #可以重复命名配置 + allow-bean-definition-overriding: true + +#server配置 +server: + #服务时限配置 + tomcat: + min-spare-threads: 100 + max-threads: 256 + connection-timeout: 8000 + main: + #可以重复命名配置 + allow-bean-definition-overriding: true + allow-circular-references: true + +#ribbon配置 +ribbon: + #服务之间调用,请求处理超时时间 + ReadTimeout: 120000 + #服务之间调用,请求连接的超时时间 + ConnectTimeout: 30000 + +#mybatis-plus配置 +mybatis-plus: + configuration: + #控制台输出sql语句 + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + # log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl + #配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as) + ap-underscore-to-camel-case: true + #如何自动映射列到字段或属性,NONE:表示取消自动映射;PARTIAL:只会自动映射没有定义嵌套结果集映射的结果集。FULL:会自动映射任意复杂的结果集(无论是否嵌套)。默认是partial,这是一种全局设置 + auto-mapping-behavior: full + global-config: + db-config: + #驼峰下划线转换 + column-underline: false + #数据库大写下划线转换 + capital-mode: true + #全局逻辑删除的实体字段名 + #logic-delete-field: flag + #逻辑未删除值(默认为 0),实体类字段需要加上@TableLogic + logic-not-delete-value: 0 + #逻辑已删除值(默认为 1) + logic-delete-value: 1 + #字段策略,IGNORED:忽略判断,NOT_NULL:非null判断,NOT_EMPTY:非空判断,DEFAULT:默认,NEVER:不加入sql + update-strategy: IGNORED + mapper-locations: classpath*:/cn/huge/*/*/dao/mapper/xml/*Mapper.xml \ No newline at end of file diff --git a/dyh-service/dyh-utils/src/main/resources/config/application-dev.yml b/dyh-service/dyh-utils/src/main/resources/config/application-dev.yml new file mode 100644 index 0000000..470c9db --- /dev/null +++ b/dyh-service/dyh-utils/src/main/resources/config/application-dev.yml @@ -0,0 +1,77 @@ +#server配置 +server: + #端口 + port: 9009 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-utils + #数据源配置 + datasource: + 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 + 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 + +#注册中心配置 +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 diff --git a/dyh-service/dyh-utils/src/main/resources/config/application-prod.yml b/dyh-service/dyh-utils/src/main/resources/config/application-prod.yml new file mode 100644 index 0000000..01b51e2 --- /dev/null +++ b/dyh-service/dyh-utils/src/main/resources/config/application-prod.yml @@ -0,0 +1,77 @@ +#server配置 +server: + #端口 + port: 9009 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-utils + #数据源配置 + datasource: + url: jdbc:dm://10.202.1.61:5236?schema=HUGEINFO + username: HUGEINFO + password: Hugeinfo@123 + 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 + +#注册中心配置 +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 diff --git a/dyh-service/dyh-utils/src/main/resources/config/application-test.yml b/dyh-service/dyh-utils/src/main/resources/config/application-test.yml new file mode 100644 index 0000000..059e4e5 --- /dev/null +++ b/dyh-service/dyh-utils/src/main/resources/config/application-test.yml @@ -0,0 +1,77 @@ +#server配置 +server: + #端口 + port: 9009 + +#Spring配置 +spring: + #服务名 + application: + name: dyh-utils + #数据源配置 + datasource: + url: jdbc:dm://10.202.1.63:5236?schema=HUGETEST + username: HUGETEST + password: Hugeinfo@123 + 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 + +#注册中心配置 +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 diff --git a/dyh-service/dyh-utils/src/main/resources/config/application.yml b/dyh-service/dyh-utils/src/main/resources/config/application.yml new file mode 100644 index 0000000..646f982 --- /dev/null +++ b/dyh-service/dyh-utils/src/main/resources/config/application.yml @@ -0,0 +1,80 @@ +#Spring配置 +spring: + profiles: + active: +# - dev + - test +# - prod + devtools: + restart: + enabled: true + servlet: + multipart: + max-file-size: -1 + max-request-size: -1 + main: + #可以重复命名配置 + allow-bean-definition-overriding: true + thymeleaf: + cache: false + prefix: + classpath: /templates + + +#server配置 +server: + #服务时限配置 + tomcat: + min-spare-threads: 100 + max-threads: 256 + connection-timeout: 8000 + +#ribbon配置 +ribbon: + #服务之间调用,请求处理超时时间 + ReadTimeout: 120000 + #服务之间调用,请求连接的超时时间 + ConnectTimeout: 30000 + +#mybatis-plus配置 +mybatis-plus: + configuration: + #控制台输出sql语句 + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + #配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as) + ap-underscore-to-camel-case: true + #如何自动映射列到字段或属性,NONE:表示取消自动映射;PARTIAL:只会自动映射没有定义嵌套结果集映射的结果集。FULL:会自动映射任意复杂的结果集(无论是否嵌套)。默认是partial,这是一种全局设置 + auto-mapping-behavior: full + global-config: + db-config: + #驼峰下划线转换 + column-underline: false + #数据库大写下划线转换 + capital-mode: true + #全局逻辑删除的实体字段名 + #logic-delete-field: flag + #逻辑未删除值(默认为 0),实体类字段需要加上@TableLogic + logic-not-delete-value: 0 + #逻辑已删除值(默认为 1) + logic-delete-value: 1 + #字段策略,IGNORED:忽略判断,NOT_NULL:非null判断,NOT_EMPTY:非空判断,DEFAULT:默认,NEVER:不加入sql + update-strategy: IGNORED + mapper-locations: classpath*:/cn/huge/*/*/dao/mapper/xml/*Mapper.xml + +#JWT配置 +jwt: + #jwt生成密钥 + secret-key: asdfghjkl + refresh-token-key: + #refreshToken 存储key + format: JWT_REFRESH_TOKEN::%s + blacklist-key: + #token黑名单 存储key + format: JWT_BLACKLIST::%s + token: + #token过期时间:12小时 + expire-time: 43200000 + refresh-token: + #refreshToken过期时间:13小时,比token时间长一点 + expire-time: 46800000 + -- Gitblit v1.8.0