SpringBoot的@Enable*注解的使用介绍

SpringBoot的@Enable*注解的使用介绍 @EnableAsync或@EnableConfigurationProperties背后的运行原理,是使用了@Import注解。 @Import({User.class,Role.class,MyConfiguration.class}),@Import里面可以存放数组类型的。 @Import用来导入一个或多个类(bean被spring容器托
相关文章
相关标签/搜索