commit
98eafbdbbb
|
@ -136,7 +136,7 @@ public @interface SpringBootConfiguration {
|
|||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Inherited
|
||||
@AutoConfigurationPackage //作用:将main包下的所欲组件注册到容器中
|
||||
@AutoConfigurationPackage //作用:将main包下的所有组件注册到容器中
|
||||
@Import({AutoConfigurationImportSelector.class}) //加载自动装配类 xxxAutoconfiguration
|
||||
public @interface EnableAutoConfiguration {
|
||||
String ENABLED_OVERRIDE_PROPERTY = "spring.boot.enableautoconfiguration";
|
||||
|
|
Loading…
Reference in New Issue