mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-08-01 16:28:03 +08:00
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…
x
Reference in New Issue
Block a user