This commit is contained in:
lxp
2026-07-07 15:47:14 +08:00
parent 55d74653da
commit 234a166924
34 changed files with 1566 additions and 18 deletions
+56
View File
@@ -0,0 +1,56 @@
spring:
application:
name: cadlabel
profiles:
active: ${SPRING_PROFILES_ACTIVE:dev}
lifecycle:
timeout-per-shutdown-phase: 30s
servlet:
multipart:
max-file-size: ${APP_MULTIPART_MAX_FILE_SIZE:100MB}
max-request-size: ${APP_MULTIPART_MAX_REQUEST_SIZE:100MB}
jackson:
default-property-inclusion: non_null
time-zone: Asia/Shanghai
server:
port: ${SERVER_PORT:8080}
shutdown: graceful
forward-headers-strategy: framework
compression:
enabled: true
min-response-size: 2KB
mybatis-plus:
global-config:
db-config:
logic-delete-field: deleted
logic-delete-value: 1
logic-not-delete-value: 0
configuration:
map-underscore-to-camel-case: true
springdoc:
api-docs:
path: /api-docs
swagger-ui:
path: /swagger-ui.html
app:
cos:
secret-id: ${APP_COS_SECRET_ID:}
secret-key: ${APP_COS_SECRET_KEY:}
bucket: ${APP_COS_BUCKET:}
region: ${APP_COS_REGION:ap-beijing}
public-base-url: ${APP_COS_PUBLIC_BASE_URL:}
upload-session-ttl: ${APP_COS_UPLOAD_SESSION_TTL:PT30M}
upload-prefix: ${APP_COS_UPLOAD_PREFIX:uploads}
max-upload-size-bytes: ${APP_COS_MAX_UPLOAD_SIZE_BYTES:104857600}
logging:
file:
path: ${LOG_PATH:logs}
level:
root: INFO
com.cadlabel: INFO
org.springframework.web: INFO