특정 프로파일 일 때 동작을 달리하고 싶을 때 사용

@Profile("prod")
@Configuration
public class BaseConfiguration {

	@Bean
	public String hello() {
		return "hello";
	}
}
# application.properties
spring.profiles.active = prod

@Profile 애노테이션은 어디에?

어떤 프로파일을 활성화 할 것인가?

어떤 프로파일을 추가할 것인가?

프로파일용 프로퍼티