Spring Boot注解补遗小结

引言 经常使用注解 @ContextConfiguration(classes=AppConfig.class) 引入applicationContext, AppConfig.class为@Configuration修饰的类 用来在单元测试中引入@ApplicationContext,以及在AppConfig.java中扫描引入的类实例。 @Profile(“name”) @ActiviePro
相关文章
相关标签/搜索