ebike-share/ebike-operate/src/main/resources/application-test.yml

41 lines
1.2 KiB
YAML
Raw Normal View History

2025-04-14 09:35:36 +08:00
server:
port: 10013
servlet:
context-path: /test
spring:
application:
name: ebike-maintenance
cloud:
nacos:
server-addr: wwdd.duia.ro:6007 # nacos
username: nacos
password: nacos
jackson:
serialization:
write-dates-as-timestamps: false
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
datasource:
url: jdbc:mysql://192.168.1.52:3306/ebike_maintenance?useSSL=false
username: root
password: 970529
hikari:
## 最小空闲连接数量
minimum-idle: 5
## 空闲连接存活最大时间默认60000010分钟
idle-timeout: 180000
## 连接池最大连接数默认是10
maximum-pool-size: 10
## 数据库连接超时时间,默认30秒即30000
connection-timeout: 30000
connection-test-query: SELECT 1
##此属性控制池中连接的最长生命周期值0表示无限生命周期默认1800000即30分钟
max-lifetime: 1800000
sql:
init:
platform: mysql
mode: always
schema-locations: classpath:db/init.sql
data-locations: classpath:db/data.sql
mybatis-flex:
mapper-locations: classpath:mapper/*.xml