From 0b6ee96645905c30d930e4ea25e55e3911c4d661 Mon Sep 17 00:00:00 2001 From: OpenCode Date: Mon, 20 Jul 2026 19:49:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Dockerfile: JRE 17 → 21 匹配实际构建环境 - application-prod.yml: 修正 cool 缩进错误,修复 file.base-url 为相对路径 --- Dockerfile | 2 +- src/main/resources/application-prod.yml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6365819..1c9e2aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM eclipse-temurin:17-jre +FROM eclipse-temurin:21-jre WORKDIR /app diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 861e977..7e849fc 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -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: