注解名 |
参数 |
作用域 |
说明 |
配置类注解 |
|
|
|
@SpringBootApplication |
exclude excludeName scanBasePackages scanBasePackageClasses |
类 |
|
@SpringBootConfiguration |
引用注解: @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Documented @Configuration |
类 |
|
@EnableAutoConfiguration |
引用注解: @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Documented @Inherited @AutoConfigurationPackage @Import(EnableAutoConfigurationImportSelector.class) 参数: exclude excludeName |
类 |
|
@AutoConfigureBefore |
参数: value name |
类 |
|
@AutoConfigureAfter |
参数: value name |
类 |
|
@AutoConfigureOrder |
参数: value default Ordered.LOWEST_PRECEDENCE; |
类 |
|
@ConfigurationPropertiesBinding |
|
|
|
@EnableConfigurationProperties |
参数: value |
|
|
@AutoConfigurationPackage |
|
|
|
@ImportAutoConfiguration |
|
|
|
@ConfigurationProperties |
|
|
|
@NestedConfigurationProperty |
|
|
|
组件扫描类 |
|
|
|
@EntityScan |
|
|
|
@ServletComponentScan |
|
|
|
条件类注解 |
|
|
|
@ConditionalOnEnabledResourceChain |
|
|
|
@ConditionalOnJndi |
|
|
|
@ConditionalOnWebApplication |
|
|
|
@ConditionalOnMissingClass |
|
|
|
@ConditionalOnNotWebApplication |
|
|
|
@FlywayDataSource |
|
|
|
@ConditionalOnProperty |
|
|
|
@ConditionalOnExpression |
|
|
|
@LiquibaseDataSource |
|
|
|
@ConditionalOnBean |
|
|
|
@ConditionalOnSingleCandidate |
|
|
|
@ConditionalOnClass |
|
|
|
@ConditionalOnMissingBean |
|
|
|
@EnableOAuth2Sso |
|
|
|
@DeprecatedConfigurationProperty |
|
|
|
@ConditionalOnResource |
|
|
|
@JsonComponent |
|
|
|
@UsesUnsafeJava |
|
|
|
@ConditionalOnJava |
|
|
|
@LocalServerPort |
|
玩转spring-boot之注解
猜你喜欢
转载自www.cnblogs.com/zhengzuozhanglina/p/9431031.html
今日推荐
周排行