FYI : I swear there is no activating profile configuration such as -D or run configuration Goal When application is booted up without any activating profile, the dev profile is activated as a default. Problem I’ve set spring.profile.default = dev , and I would expect that the dev profile is activated. But it is not. What I did Run Environment
Tag: spring-profiles
How to set a Spring profile to a package?
I want to set a profile name to a whole package and I don’t know how. If where is no easy way then I have to mark every class in the package and sub packages with @Profile annotation. <context:component-scan/> tag does not support attribute like profile so I have no idea. Answer If you don’t mix XML and Java config