This commit is contained in:
王子琦
2026-02-09 21:14:30 +08:00
parent 09028d97f7
commit f9bfb8556b
54 changed files with 6963 additions and 461 deletions

View File

@@ -8,33 +8,30 @@ spring:
name: pet-hospital
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=MYSQL;
username: sa
password: password
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3307/pet_hospital_dev?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
username: root
password: qq5211314
hikari:
maximum-pool-size: 10
minimum-idle: 5
maximum-pool-size: 20
minimum-idle: 10
connection-timeout: 30000
idle-timeout: 600000
max-lifetime: 1800000
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
h2:
console:
enabled: true
path: /h2-console
jpa:
hibernate:
ddl-auto: create-drop
ddl-auto: update
show-sql: true
sql:
init:
mode: always
schema-locations: classpath*:schema-h2.sql
mode: never
schema-locations: classpath*:schema.sql
data-locations: classpath*:data.sql
mybatis-plus: