Skip to content
New issue

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

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

Already on GitHub? # to your account

Yaml does not support multiple profiles. #226

Closed
studeyang opened this issue Jan 20, 2022 · 1 comment
Closed

Yaml does not support multiple profiles. #226

studeyang opened this issue Jan 20, 2022 · 1 comment

Comments

@studeyang
Copy link
Contributor

Issue Description

Type: bug report

Yaml does not support multiple profiles.

Describe what happened (or what feature you want)

My Nacos configuration is:

test1:
  config: 2

---
spring:
  profiles: alpha
test1:
  config: alpha

---
spring:
  profiles: beta
test1:
  config: beta

When I set active profiles=alpha and get property named test1.config, nacos-spring-boot gave me the result beta.

Describe what you expected to happen

I expect the result is alpha.

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

nacos-spring-boot-starter: 0.1.7

Anything else we need to know?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants