上一页 1 ··· 15 16 17 18 19
摘要: 1.beans 2.引入@Import 3.自定义ImportSelector 4.自定义ImportBeanDefinitionRegistrar,手动指定bean的名称,避免全路径名 最正点的详解: http://blog.51cto.com/4247649/2118354 阅读全文
posted @ 2018-09-23 08:53 超轶绝尘 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 2.条件1 3.条件2 阅读全文
posted @ 2018-09-23 08:06 超轶绝尘 阅读(2554) 评论(0) 推荐(0) 编辑
摘要: 1.配置文件形式: <context:component-scan base-package="com.atguigu" /> spring会扫描此包下的@Service @Repository @Component @Autoware @Resource 等注解 2.注解形式 在配置文件注解类(@ 阅读全文
posted @ 2018-09-23 07:48 超轶绝尘 阅读(857) 评论(0) 推荐(0) 编辑
摘要: 一、原始的 xml配置方式 1.Spring pom 依赖 2.JavaBean 3.beans.xml 4.测试类 二、注解的形式 1. @Configuration替代beans.xml,@Bean 替代<bean> 2.测试用例 阅读全文
posted @ 2018-09-22 22:26 超轶绝尘 阅读(229) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19