SYYTe/maku-server/src/main/resources/application-dev.yml

55 lines
2.0 KiB
YAML
Raw Normal View History

2022-04-22 15:26:39 +08:00
spring:
redis:
2022-11-04 12:37:27 +08:00
database: 1
2022-04-22 15:26:39 +08:00
host: localhost
2022-11-04 12:37:27 +08:00
port: 6379
#password:
2022-04-22 15:26:39 +08:00
#timeout: 6000ms # 连接超时时长(毫秒)
datasource:
2022-10-18 12:29:59 +08:00
# MySQL8
2022-06-23 23:30:50 +08:00
driver-class-name: com.mysql.cj.jdbc.Driver
2022-11-04 12:37:27 +08:00
url: jdbc:mysql://localhost:3306/maku_boot?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
username: maku
2022-06-23 23:30:50 +08:00
password: 123456
2022-10-18 12:29:59 +08:00
# 达梦
# driver-class-name: dm.jdbc.driver.DmDriver
# url: jdbc:dm://192.168.3.19:5236/maku_boot?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
# username: maku_boot
# password: 12345678
# PostgreSQL
# driver-class-name: org.postgresql.Driver
# url: jdbc:postgresql://192.168.3.19:5432/postgres
# username: postgres
# password: 123456
2022-06-23 23:30:50 +08:00
hikari:
connection-timeout: 30000 # 等待连接池分配链接的最大时长(毫秒),超过这个时长还没有可用的连接则发生 SQLException默认30 秒
2022-07-22 22:49:53 +08:00
minimum-idle: 2 # 最小空闲连接数
maximum-pool-size: 10 # 最大连接数
2022-06-23 23:30:50 +08:00
auto-commit: true # 自动提交
idle-timeout: 600000 # 连接超时的最大时长毫秒超时则被释放retired默认10 分钟
max-lifetime: 1800000 # 连接的生命时长毫秒超时而且没被使用则被释放retired默认 30 分钟
2022-07-22 22:49:53 +08:00
connection-test-query: SELECT 1
2022-11-24 23:26:51 +08:00
pool-name: MakuHikariCP
--- ############ 监控相关配置
# Actuator 配置
management:
endpoints:
web:
base-path: /actuator
exposure:
include: '*'
# Spring Boot Admin 配置
spring:
boot:
admin:
# Spring Boot Admin Server 服务端地址
context-path: /monitor/admin
client:
# 指定 Spring Boot Admin Server 服务端地址
url: http://127.0.0.1:${server.port}/${spring.boot.admin.context-path}
instance:
service-host-type: IP