摘要:
1.@Configuration注解 该注解是使用在class上的一个注解,等价于XML中配置beans,相当于Ioc容器,它的某个方法头上如果注册了@Bean,就会作为这个Spring容器中的Bean,与xml中配置的bean意思一样。 2.@Bean是一个方法级别上的注解,主要用在@Config 阅读全文
posted @ 2019-11-06 23:08 GLLegolas 阅读(319) 评论(0) 推荐(0) 编辑
posted @ 2019-11-06 23:08 GLLegolas 阅读(319) 评论(0) 推荐(0) 编辑
posted @ 2019-11-06 22:57 GLLegolas 阅读(196) 评论(0) 推荐(0) 编辑
posted @ 2019-11-06 21:28 GLLegolas 阅读(245) 评论(0) 推荐(0) 编辑
posted @ 2019-11-06 11:30 GLLegolas 阅读(486) 评论(0) 推荐(0) 编辑
posted @ 2019-11-06 11:23 GLLegolas 阅读(307) 评论(0) 推荐(0) 编辑