Spring学习
辣鸡翅17
Coding for Truth
展开
-
Spring学习(一)| HelloWorld
1. 新建项目 新建一个java project 新建一个lib文件夹,导入以下五个包,并且build path commons-logging-1.2.jar spring-beans-4.3.9.RELEASE.jar spring-context-4.3.9.RELEASE.jar spring-core-4.3.9.RELEASE.jar spring-expression-4.3.9...原创 2018-10-24 23:51:03 · 98 阅读 · 0 评论 -
Spring学习(二)| Bean配置
文章目录1. 什么是IoC2. 配置Bean2.1 配置形式2.1.1 基于XML文件的形式2.1.2 基于注解的方式2.1.2.1 组件扫描2.1.2.2 组件装配2.2 Bean的配置方式2.2.1 通过全类名(反射)2.2.2 静态工厂方法2.2.3 实例工厂方法2.2.4 通过 FactoryBean 配置2.3 IOC 容器 BeanFactory & ApplicationCo...原创 2018-10-26 21:24:18 · 224 阅读 · 0 评论 -
Spring学习(三)| Spring AOP
文章目录1. 什么是 AOP ?2. 为什么需要使用 AOP ?3. AOP 术语4. 在 Spring 中使用 Aspect 注解方式进行切面编程4.1 在 Spring 中启用 AspectJ 注解支持4.2 用 AspectJ 注解声明切面4.3 通知详解5. 指定切面的优先级6. 重用切入点表达式7. 基于 XML 配置文件的方式来配置 AOP 1. 什么是 AOP ? AOP:面向切面...原创 2018-11-01 09:30:03 · 117 阅读 · 0 评论