Repository navigation
AutoConfiguration 동작 원리 #124
GIVEN53
started this conversation in
Spring Boot
Replies: 2 comments
AutoConfiguration스프링의 AutoConfiguration은 애플리케이션이 실행될 때 필요한 구성을 자동으로 설정하는 기능이다. 작동 원리
사용 예시
커스텀
ref. https://tecoble.techcourse.co.kr/post/2021-10-14-springboot-autoconfiguration/ |
0 replies
|
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 클래스의
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
.
All reactions