|
...
|
...
|
@@ -10,7 +10,7 @@ spring: |
|
|
|
devtools:
|
|
|
|
add-properties: false
|
|
|
|
profiles:
|
|
|
|
active: dev
|
|
|
|
active: prd
|
|
|
|
mvc:
|
|
|
|
#静态资源,设置上传文件的访问,
|
|
|
|
static-path-pattern: /**
|
|
...
|
...
|
@@ -51,7 +51,7 @@ spring: |
|
|
|
enabled: true
|
|
|
|
|
|
|
|
datasource:
|
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
|
|
#oracle
|
|
|
|
#driver-class-name=oracle.jdbc.OracleDriver
|
|
|
|
#url=jdbc:oracle:thin:@10.50.3.68:1521:CGODW
|
|
...
|
...
|
@@ -62,30 +62,26 @@ spring: |
|
|
|
username: 110
|
|
|
|
password: QAHqCJf2kFYCLirM
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
#配置初始化大小/最小/最大
|
|
|
|
druid:
|
|
|
|
initial-size: 1
|
|
|
|
min-idle: 1
|
|
|
|
max-active: 20
|
|
|
|
#获取连接等待超时时间
|
|
|
|
max-wait: 60000
|
|
|
|
#一个连接在池中最小生存的时间
|
|
|
|
min-evictable-idle-time-millis: 300000
|
|
|
|
#间隔多久进行一次检测,检测需要关闭的空闲连接
|
|
|
|
time-between-eviction-runs-millis: 60000
|
|
|
|
#mysql
|
|
|
|
validation-query: SELECT 1 FROM DUAL
|
|
|
|
#oracle
|
|
|
|
#druid.validation-query:SELECT 'x' FROM DUAL
|
|
|
|
test-while-idle: true
|
|
|
|
test-on-borrow: false
|
|
|
|
test-on-return: false
|
|
|
|
default-auto-commit: true
|
|
|
|
# tomcat:
|
|
|
|
# max-wait: 10
|
|
|
|
# max-idle: 10000
|
|
|
|
# min-idle: 5
|
|
|
|
# initial-size: 5
|
|
|
|
# HikariCP特有配置
|
|
|
|
hikari:
|
|
|
|
# 连接池名称
|
|
|
|
pool-name: KakoUserHikariCP-
|
|
|
|
# 最小空闲连接数
|
|
|
|
minimum-idle: 1
|
|
|
|
# 最大连接数
|
|
|
|
maximum-pool-size: 20
|
|
|
|
# 连接超时时间(毫秒)
|
|
|
|
connection-timeout: 60000
|
|
|
|
# 空闲连接超时时间(毫秒)
|
|
|
|
idle-timeout: 300000
|
|
|
|
# 连接测试超时时间
|
|
|
|
validation-timeout: 3000
|
|
|
|
# 连接最大生命周期
|
|
|
|
max-lifetime: 1800000
|
|
|
|
# 连接测试查询
|
|
|
|
connection-test-query: SELECT 1
|
|
|
|
# 初始化连接数
|
|
|
|
initialization-fail-timeout: 1
|
|
|
|
|
|
|
|
eureka:
|
|
|
|
instance:
|
|
...
|
...
|
@@ -96,11 +92,7 @@ eureka: |
|
|
|
hostname: ${spring.cloud.client.ip-address}
|
|
|
|
lease-renewal-interval-in-seconds: 15
|
|
|
|
lease-expiration-duration-in-seconds: 45
|
|
|
|
health-check-url-path: /actuator/health
|
|
|
|
metadata-map:
|
|
|
|
user:
|
|
|
|
name: "admin" #These two are needed so that the server
|
|
|
|
password: "123456"
|
|
|
|
health-check-url-path: /ac/health
|
|
|
|
client:
|
|
|
|
#eureka注册中心服务器地址
|
|
|
|
service-url:
|
|
...
|
...
|
@@ -108,19 +100,27 @@ eureka: |
|
|
|
defaultZone: http://192.168.1.53:12345/eureka/
|
|
|
|
registry-fetch-interval-seconds: 30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
management:
|
|
|
|
endpoints:
|
|
|
|
enabled-by-default: true
|
|
|
|
web:
|
|
|
|
base-path: /ac # 端点路径更改为 /ac
|
|
|
|
exposure:
|
|
|
|
include: "*"
|
|
|
|
include: "health,info" # 仅暴露必要端点
|
|
|
|
endpoint:
|
|
|
|
health:
|
|
|
|
show-details: always
|
|
|
|
show-details: never # 不显示详细健康信息
|
|
|
|
shutdown:
|
|
|
|
enabled: true
|
|
|
|
enabled: false # 禁用关闭端点
|
|
|
|
env:
|
|
|
|
enabled: false # 禁用环境端点(防止敏感信息泄露)
|
|
|
|
mappings:
|
|
|
|
enabled: false # 禁用映射端点(防止接口路径泄露)
|
|
|
|
beans:
|
|
|
|
enabled: false # 禁用beans端点
|
|
|
|
configprops:
|
|
|
|
enabled: false # 禁用configprops端点
|
|
|
|
|
|
|
|
|
|
|
|
mybatis:
|
|
|
|
mapper-locations: classpath:mapping/*.xml
|
...
|
...
|
|