Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

升级到 2023.0.3.2会导致 Spring Boot 自身日志配置失效 #3923

Open
axeon opened this issue Dec 13, 2024 · 3 comments
Open

升级到 2023.0.3.2会导致 Spring Boot 自身日志配置失效 #3923

axeon opened this issue Dec 13, 2024 · 3 comments
Labels

Comments

@axeon
Copy link

axeon commented Dec 13, 2024

Which Component
Nacos config & discovery.

Describe the bug
原使用版本2023.0.1.2,一切正常。
升级到2023.0.3.2之后,应用启动失败,无法加载配置文件。

Additional context
使用的配置文件如下:
project:
name: @project.name@
version: @project.version@

spring:
application:
name: ${project.name}
cloud:
nacos:
server-addr: ${NACOS_SERVER}
username: ${NACOS_USERNAME}
password: ${NACOS_PASSWORD}
config:
namespace: ${NACOS_NAMESPACE}
file-extension: yaml
discovery:
namespace: ${spring.cloud.nacos.config.namespace}
service: ${spring.application.name}
ip: ${APP_HOST:}
SCA在国内也算是广泛应用的组件了,不知道这次升级为何如此鲁莽。
存量项目不知道有多少,原有的配置格式也没啥大问题,也挺好的,为什么突然搞这么一出?

@Comven
Copy link

Comven commented Dec 13, 2024

配置中心需要使用spring.config.import方式引入,2023.0.1.2有默认值,2023.0.1.3之后需要使用spring.config.import指定。

@axeon
Copy link
Author

axeon commented Dec 13, 2024

为什么在配置文件格式上不向上兼容呢?
如果非要修改配置文件格式,建议:

  1. 格式的修改确定有额外的好处。
  2. 有明确的文档说明,或者release note中特别说明。

Copy link

This issue has been open 30 days with no activity. This will be closed in 7 days.

@github-actions github-actions bot added the stale label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants