Spring 스프링 - @Conditional 조건 별 Bean 생성하기
dev, staging, production 상황 별로 등록해야 되는 Spring Bean이 다를수가 있습니다.개발 환경에서만 작동해야 되고 실제 운영 환경에서는 작동하면 않될 기능이 있습니다.실습해볼 예제는 Memory를 가져
velog.io
https://lordofkangs.tistory.com/315
[SpringBoot] @Conditional 이란?
@Conditional 어노테이션이란? 컴포넌트의 Bean 등록여부에 조건을 달 수 있게하는 어노테이션이다. 스프링은 IOC컨테이너에 객체를 Bean으로 등록하여 사용한다. @Component로 선언된 클래스는 모두 Bean
lordofkangs.tistory.com
'spring-boot' 카테고리의 다른 글
RestClient (0) | 2024.10.05 |
---|---|
Serve Static Resources with Spring (0) | 2024.09.27 |
spring-boot Grpc (0) | 2023.12.20 |
spring-boot-starter-parent 설정 - gradle & maven (0) | 2023.11.27 |
spring boot embedded tomcat 설정 (0) | 2023.11.21 |