-1

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

deepakchethan
  • 5,240
  • 1
  • 23
  • 33
LordHans
  • 7
  • 2

2 Answers2

0

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

philgsk
  • 51
  • 9
  • I tried to run it with "mvn spring-boot:run" too where it should take the default properties and then use the profile that is set. But I had no luck with that – LordHans Oct 05 '21 at 14:45
0

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.

thepaoloboi
  • 708
  • 4
  • 13
  • 1
    I use Eclipse. It makes those icons different but they look the same from proyect folder. It worked before and it works in other proyect just not on that one – LordHans Oct 05 '21 at 19:52