@ConditionalOnMissingBean 生效条件 简单印证
在学习SpringBoot时,遇到@EnableWebMvc注解:
(1)EnableWebMvc的核心,引入了DelegatingWebMvcConfiguration实例;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import(DelegatingWebMvcConfiguration.class)
public @interface EnableWebMvc {
}
(2)而 D...
原创
2020-11-27 11:45:53 ·
1707 阅读 ·
3 评论