forked from github/cool-admin-java
fix: 修正生产环境配置
- Dockerfile: JRE 17 → 21 匹配实际构建环境 - application-prod.yml: 修正 cool 缩进错误,修复 file.base-url 为相对路径
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM eclipse-temurin:17-jre
|
||||
FROM eclipse-temurin:21-jre
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user