특정 프로파일 일 때 동작을 달리하고 싶을 때 사용
@Profile("prod")
@Configuration
public class BaseConfiguration {
@Bean
public String hello() {
return "hello";
}
}
# application.properties
spring.profiles.active = prod
spring.profiles.active = prod
—spring.profiles.active=test