You can specify a profile at config class level or at method level
Or you can specify a profile on a component class(any stereotype)
Profiles are not immune to test application context
@ActiveProfiles
You can specify as many profiles you want
Only beans belonging to specified profile and beans that belonging to a default profile will be activated.
@ActiveProfiles(“local”, “qa”)