refactor: 移除 project.version 配置避免启动解析异常

- 删除 application.yml 的 project.version 段,banner 与 OpenApi 不再读取该属性
- 移除 banner.txt 的 YouLai Boot Version 行
- OpenApiConfig 不再显示接口文档版本号,删除无用的 Environment 依赖
- 为 config.import: classpath:codegen.yml 补充代码生成模块配置说明注释
This commit is contained in:
Ray.Hao committed 2026-08-02 14:18:44 +08:00
1 parent afc1780705
commit 155fc69a78
3 files changed
+2 -10

No files matched your search

+1 -3
View File
@@ -4,12 +4,10 @@ spring:
profiles:
active: dev
config:
# 引入代码生成模块的配置(数据源、表前缀等),由 codegen.yml 提供
import: classpath:codegen.yml
servlet:
multipart:
# 单文件大小上限,取自 file-storage.upload.max-file-size(单一来源)
max-file-size: ${file-storage.upload.max-file-size:50MB}
max-request-size: ${file-storage.upload.max-file-size:50MB}
# 在 banner.txt 中显示项目版本,使用 @project.version@ 从 pom.xml 获取
project:
version: @project.version@
-1
View File
@@ -7,7 +7,6 @@ ${AnsiColor.BRIGHT_BLUE}
|_|\___/ \__,_| |______\__,_|_|
${AnsiColor.BRIGHT_GREEN}
YouLai Boot Version: ${project.version}
Spring Boot Version: ${spring-boot.version}${spring-boot.formatted-version}
有来官网: https://www.youlai.tech/
版权所属: 有来开源组织