(SpringBoot) 프로파일
(SpringBoot) 프로파일 프로파일 : 특정한 프로파일에서만 특정 빈을 등록하고 싶을 때 혹은 특정 프로파일 때 다르게 빈 설정을 하고 싶을 때 사용 prod라는 profile 생성 @Profile("prod") @Configuration public class BaseConfiguration { @Bean public String hello() { return "hello"; } } test라는 profile 생성 @Profile("test") @Configuration public class TestConfiguration { @Bean public String hello() { return "hello"; } } 에러 발생 @Component public class SampleListener ..
카테고리 없음
2020. 2. 15. 15:56