@Import({WeChatInvokerConfiguration.class, WeChatImportSelector.class})@EnableConfigurationProperties(WeChatApiConfig.class)@EnableRetry@EnableScheduling@Target(ElementType.TYPE)@Retention(RetentionPolicy.RUNTIME)@Documentedpublic @interface MBootApplication {Class<? extends WeChatTokenStore> tokenCache();}@MBootApplicationclass A{}当在A类上使用注解@MBootApplication时如何在@EnableConfigurationProperties设置值
1 回答
阿晨1998
TA贡献2037条经验 获得超6个赞
@Retention(RetentionPolicy.RUNTIME)@ContextConfigurationpublic @interface Test { @AliasFor(value = "classes", annotation = ContextConfiguration.class) Class<?>[] t() default {}; }
t
就等同于@ContextConfiguration属性中的classes属性
annotation(哪个注解)value(哪个属性的别名)
添加回答
举报
0/150
提交
取消