添加后端代码、数据库文档和FRP配置
This commit is contained in:
61
backend/target/classes/application-dev.yml
Normal file
61
backend/target/classes/application-dev.yml
Normal file
@@ -0,0 +1,61 @@
|
||||
server:
|
||||
port: 8081
|
||||
servlet:
|
||||
context-path: /api
|
||||
|
||||
spring:
|
||||
application:
|
||||
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
|
||||
hikari:
|
||||
maximum-pool-size: 10
|
||||
minimum-idle: 5
|
||||
connection-timeout: 30000
|
||||
|
||||
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
|
||||
show-sql: true
|
||||
|
||||
sql:
|
||||
init:
|
||||
mode: always
|
||||
schema-locations: classpath*:schema-h2.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
|
||||
Reference in New Issue
Block a user