AutoConfiguration 동작 원리 #124
Replies: 2 comments
-
AutoConfiguration스프링의 AutoConfiguration은 애플리케이션이 실행될 때 필요한 구성을 자동으로 설정하는 기능이다. 작동 원리
사용 예시
커스텀
ref. https://tecoble.techcourse.co.kr/post/2021-10-14-springboot-autoconfiguration/ |
Beta Was this translation helpful? Give feedback.
-
AutoConfiguration의 시작은
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@AutoConfigurationPackage
@Import({AutoConfigurationImportSelector.class})
public @interface EnableAutoConfiguration {
String ENABLED_OVERRIDE_PROPERTY = "spring.boot.enableautoconfiguration";
Class<?>[] exclude() default {};
String[] excludeName() default {};
} 자동 구성 클래스를 가져올 때는 AutoConfigurationImportSelector 클래스의
|
Beta Was this translation helpful? Give feedback.
-
.
Beta Was this translation helpful? Give feedback.
All reactions