摘要:
实现类 package com.mongoubiubiu.bean; import org.springframework.beans.factory.FactoryBean; //创建一个spring 定义的工厂bean public class ColorFactoryBean implemen 阅读全文
posted @ 2021-07-26 23:10
KwFruit
阅读(50)
评论(0)
推荐(0)
摘要:
实现类 package com.mongoubiubiu.condition; import org.springframework.beans.factory.support.BeanDefinitionDefaults; import org.springframework.beans.fact 阅读全文
posted @ 2021-07-26 22:54
KwFruit
阅读(69)
评论(0)
推荐(0)
摘要:
实现类 package com.mongoubiubiu.condition; import org.springframework.context.annotation.ImportSelector; import org.springframework.core.type.AnnotationM 阅读全文
posted @ 2021-07-26 22:43
KwFruit
阅读(61)
评论(0)
推荐(0)
摘要:
给容器中注册组件的三种方式 1)丶包扫描+组件标注注解(@Controller / @Service / @Repository /@Component )[自己写的类,方便加上注解,用上包扫描] 2)丶@Bean[导入的第三方包里面的组件] 3) 丶@Import[快速给容器中导入一个组件] 直接 阅读全文
posted @ 2021-07-26 22:16
KwFruit
阅读(47)
评论(0)
推荐(0)

浙公网安备 33010602011771号