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 @Pr
@Pr
You can set profile for:
@Configuration
@Configuration @Profile("your-profile") @Componentscan("your.package") class AppConfig { }
In each of them you can use component scanning for your a particular package.