2021年10月17日

Spring ImportSelector接口Demo

摘要: 这个接口要配合@Import注解一起使用 1 import org.springframework.context.annotation.ImportSelector; 2 import org.springframework.core.type.AnnotationMetadata; 3 4 pu 阅读全文

posted @ 2021-10-17 20:57 luckygxf 阅读(29) 评论(0) 推荐(0) 编辑

Spring @Import注解Demo

摘要: @Import可以把第三方定义的java类加载到spring ioc容器中 配置文件 import com.gxf.importdemo.ImportBean; import org.springframework.context.annotation.ComponentScan; import o 阅读全文

posted @ 2021-10-17 18:44 luckygxf 阅读(32) 评论(0) 推荐(0) 编辑

Spring @Async demo

摘要: config配置类AsyncConfig.java import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; im 阅读全文

posted @ 2021-10-17 16:35 luckygxf 阅读(70) 评论(0) 推荐(0) 编辑

导航