sermant-io / Sermant

CNCF sandbox project, a Cloud-Native Proxyless Service Mesh based on Java Bytecode Enhancement Technology
https://sermant.io/
Apache License 2.0
1.25k stars 164 forks source link

【bug】当多个配置源重复配置spring.application.name时,springboot注册插件无法获取正确的值 #1197

Closed luanwenfei-venus closed 1 year ago

luanwenfei-venus commented 1 year ago

What happened?

当application.yml与bootstrap.yml同时配置不同的spring.application.name时,springboot注册插件获取的配置为bootstrap.yml中的值,但实际上,在spring环境中,应该是application.yml中的值(比如@Value("${spring.application.name}"))

How can we reproduce it (as minimally and precisely as possible)?

当application.yml与bootstrap.yml同时配置不同的spring.application.name

Anything else we need to know?

No response

Sermant version

1.1.0-alpha

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```
github-actions[bot] commented 1 year ago

This issue seems to be Stale. We will close it in a few days.

github-actions[bot] commented 1 year ago

We close this issue because it hasn't been updated in a while. Remove Stale label if you want to reopen it.