Files
gpf_pet_hospital/backend/target/classes/application-dev.yml
2026-02-25 13:15:15 +08:00

59 lines
1.3 KiB
YAML

server:
port: 8081
address: 0.0.0.0
servlet:
context-path: /api
spring:
application:
name: pet-hospital
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/pet_hospital_dev?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8
username: root
password: qq5211314
hikari:
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
jpa:
hibernate:
ddl-auto: update
show-sql: true
sql:
init:
mode: never
schema-locations: classpath*:schema.sql
data-locations: classpath*:data.sql
mybatis-plus:
configuration:
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
id-type: auto
logic-delete-field: deleted
logic-delete-value: 1
logic-not-delete-value: 0
mapper-locations: classpath*:mapper/**/*.xml
ddl-auto: create-drop
# JWT配置
jwt:
secret: petHospitalSecretKey2024GuanPengFeiGraduateDesign
expiration: 86400000 # 24小时
# 文件上传配置
file:
upload-path: /tmp/pet-hospital/uploads/
max-size: 10MB