fix: 修正生产环境配置

- Dockerfile: JRE 17 → 21 匹配实际构建环境
- application-prod.yml: 修正 cool 缩进错误,修复 file.base-url 为相对路径
This commit is contained in:
OpenCode
2026-07-20 19:49:28 +08:00
parent 98d262a68c
commit 0b6ee96645
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -2,7 +2,7 @@ spring:
datasource:
url: jdbc:mysql://mysql:3306/cool?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
username: root
password: mysql
password: "mysql"
driver-class-name: com.mysql.cj.jdbc.Driver
cache:
@@ -21,7 +21,6 @@ auto-table:
superInsertPosition: before
model-package: com.cool.**.entity
# Cool相关配置
cool:
captcha:
enable: false
@@ -29,7 +28,7 @@ cool:
file:
mode: local
local:
base-url: http://127.0.0.1:${server.port}/upload
base-url: /upload
# 文档
springdoc: