|
|
@@ -1,3 +1,116 @@
|
|
|
+server:
|
|
|
+ # 既然合并了,必须选一个端口,或者通过命令行参数指定
|
|
|
+ port: 8080
|
|
|
+
|
|
|
spring:
|
|
|
- application:
|
|
|
- name: zjrs-service-backend
|
|
|
+ # 核心:通用基础设施配置
|
|
|
+ jpa:
|
|
|
+ database-platform: org.hibernate.dialect.Oracle10gDialect
|
|
|
+ ehcache:
|
|
|
+ # 直接写相对 resources 的路径
|
|
|
+ config: config/cache/ehcache.xml
|
|
|
+
|
|
|
+ redis:
|
|
|
+ host: 192.168.0.56
|
|
|
+ port: 6379
|
|
|
+ password: Bowin123456
|
|
|
+ selfdefine:
|
|
|
+ map:
|
|
|
+ jwtToken: { expireTime: 14400, cacheNullValues: false, keyPrefix: jwt, usePrefix: true }
|
|
|
+ userinfo: { expireTime: 60, cacheNullValues: false, keyPrefix: userinfo, usePrefix: true }
|
|
|
+ clientinfo: { expireTime: 60, cacheNullValues: false, keyPrefix: clientinfo, usePrefix: true }
|
|
|
+ authoritiesinfo: { expireTime: 14400, cacheNullValues: false, keyPrefix: authorities, usePrefix: true }
|
|
|
+ authenticationcode: { expireTime: 600, cacheNullValues: false, keyPrefix: authenticationcode, usePrefix: true }
|
|
|
+ leafcache_security: { expireTime: 1800, cacheNullValues: false, keyPrefix: leafcache_security, usePrefix: true }
|
|
|
+
|
|
|
+ datasource:
|
|
|
+ type: com.alibaba.druid.pool.DruidDataSource
|
|
|
+ driver-class-name: oracle.jdbc.OracleDriver
|
|
|
+ url: jdbc:oracle:thin:@//192.168.0.56:1521/FREEPDB1
|
|
|
+ username: ZJRS_YWXT
|
|
|
+ password: Bowin123456
|
|
|
+ druid:
|
|
|
+ initial-size: 10
|
|
|
+ max-active: 100
|
|
|
+ min-idle: 10
|
|
|
+ max-wait: 60000
|
|
|
+ test-while-idle: true
|
|
|
+ validation-query: SELECT 1 FROM DUAL
|
|
|
+ filter:
|
|
|
+ wall:
|
|
|
+ config:
|
|
|
+ multi-statement-allow: true
|
|
|
+ web-stat-filter:
|
|
|
+ enabled: true
|
|
|
+ url-pattern: "/*"
|
|
|
+ exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"
|
|
|
+
|
|
|
+ # MyBatis-Plus 合并配置
|
|
|
+ mybatis-plus:
|
|
|
+ configuration:
|
|
|
+ jdbc-type-for-null: 'null' # 保留 zwnw 的配置
|
|
|
+ # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 调试时开启
|
|
|
+
|
|
|
+ jackson:
|
|
|
+ default-property-inclusion: non_null
|
|
|
+
|
|
|
+ servlet:
|
|
|
+ multipart:
|
|
|
+ max-file-size: 10MB
|
|
|
+
|
|
|
+# Leaf 框架合并配置
|
|
|
+leaf:
|
|
|
+ no-repeat-submit:
|
|
|
+ enabled: false
|
|
|
+ auth:
|
|
|
+ client:
|
|
|
+ client-authorization: { enabled: false }
|
|
|
+ resource-id: res-server
|
|
|
+ jwt:
|
|
|
+ public-key-location: pub.pem
|
|
|
+ sign-algorithm: SM2
|
|
|
+ service-authentication-enabled: false
|
|
|
+ gateway-server: false
|
|
|
+ url:
|
|
|
+ # 合并两个模块的白名单列表
|
|
|
+ whitelist:
|
|
|
+ - /captcha/**
|
|
|
+ - /api/captcha/**
|
|
|
+ - /index/queryRootMenuStore
|
|
|
+ - /api/**
|
|
|
+ - /**.js
|
|
|
+ - /druid/**
|
|
|
+ - /error
|
|
|
+ - /webjars/**
|
|
|
+ - /swagger-ui.html
|
|
|
+ - /swagger-resources/**
|
|
|
+ - /swagger-ui/**
|
|
|
+ - /v3/api-docs
|
|
|
+ - /v2/api-docs
|
|
|
+ - /actuator
|
|
|
+ - /actuator/**
|
|
|
+ - /poster/**
|
|
|
+ - /leaf6-uni-cloud-uc-service/** # zwnw 特有
|
|
|
+
|
|
|
+# 业务特有配置(yjt, real_name_auth 等保持不变)
|
|
|
+yjt:
|
|
|
+ xfmxURL: http://218.14.255.250:2080/api
|
|
|
+ version: 1.0
|
|
|
+ userid: "00000002"
|
|
|
+ privateKey: ... # 略
|
|
|
+ publicKey: ... # 略
|
|
|
+
|
|
|
+real_name_auth:
|
|
|
+ secretId: AKIDKVSAex3vZyFH5ecMwIPIxNZaP0N4f6KM
|
|
|
+ secretKey: sXyFI9oESVN5f2CFD2e5JL9jDXgfSHwO
|
|
|
+ callbackURL: https://rsj.zhanjiang.gov.cn/wx/
|
|
|
+
|
|
|
+# 监控与管理
|
|
|
+management:
|
|
|
+ endpoints:
|
|
|
+ web:
|
|
|
+ exposure:
|
|
|
+ include: '*'
|
|
|
+ endpoint:
|
|
|
+ health:
|
|
|
+ show-details: ALWAYS
|