Home > Blockchain >  Why does spring.profiles.active only read some profiles?
Why does spring.profiles.active only read some profiles?

Time:10-06

Im making multiple profiles for my springboot app.

I have dev, local and test properties files.

Properties files

On application.properties file I only have this:

spring.profiles.active=dev

If I change dev to local or test spring doesnt load the profile and the console stays like this:

spring.profiles.active=test console

Any reason why it doesnt work with local and test but it does with dev? I have exact same settings on all 3 and yet it doesnt work

CodePudding user response:

Maybe you have multiple setting to set the profile? Perhaps although in you IDE Application Config?

CodePudding user response:

I do not know how did you created the local and test properties files but from your first screenshot they seem to be different from the others (see the different icons).

Check how did you create them.

  • Related