![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring 学习笔记
sh542610
这个作者很懒,什么都没留下…
展开
-
spring学习笔记(3)--spring环境配置与应用
1. FAQ:不给提示:原创 2014-04-16 16:12:05 · 521 阅读 · 0 评论 -
spring学习笔记(12)--Introduction-AOP中的动态代理
1.DI让相互协作的软件组件保持松耦合原创 2014-04-19 20:05:41 · 492 阅读 · 0 评论 -
spring学习笔记(13)--aop annotation
1.bean.xml<beans xmlns="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:contex原创 2014-04-19 21:05:26 · 475 阅读 · 0 评论 -
spring学习笔记(14)--AOP Annotation
1.LogInterceptor.javapackage org.sh.spring.aop;import org.aspectj.lang.annotation.After;import org.aspectj.lang.annotation.Aspect;import org.aspectj.lang.annotation.Before;import org.springfram原创 2014-04-19 21:58:09 · 502 阅读 · 0 评论 -
spring学习笔记(15)--AOP XML
啊啊原创 2014-04-21 15:19:03 · 610 阅读 · 0 评论 -
spring学习笔记(16)--Spring DataSource
1.beans.xml 这个不用多说了原创 2014-04-21 16:49:19 · 482 阅读 · 0 评论 -
spring学习笔记(17)--通过工厂方法创建Bean
1.beans.xml<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/b原创 2014-04-21 18:20:31 · 551 阅读 · 0 评论 -
spring和mybatis的简单集成
1.下载开发环境所欲需要的所有包:原创 2014-04-26 14:12:36 · 651 阅读 · 0 评论 -
SpringMvc 和mybatis的集成
1.配置web.xml<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http:原创 2014-04-28 16:41:50 · 714 阅读 · 0 评论 -
spring学习笔记(8)--xml annotation
1.使用annotation的xml<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema原创 2014-04-17 19:31:03 · 459 阅读 · 0 评论 -
spring学习笔记(11)--@PostConstruct and @PreDestory
1.UserServices.java@PostConstruct public void init() { System.out.println("init******"); }@PreDestroy public void destory() { System.out.println("destory******"); }原创 2014-04-17 21:05:54 · 813 阅读 · 0 评论 -
spring学习笔记(6)--自动装配autowire
1.autowire常用的两种方式1)byName:按照名字自动匹配2) byType:按照原创 2014-04-16 17:12:36 · 695 阅读 · 0 评论 -
spring 学习笔记(1)--模拟spring
1.spring配置文件 beans.xml原创 2014-04-16 10:12:24 · 524 阅读 · 0 评论 -
spring学习笔记(5)--集合注入
1.配置文件 1 2 1 2 3 2.IUserDAOImpl.java原创 2014-04-16 16:48:48 · 460 阅读 · 0 评论 -
spring学习笔记(4)--bean的作用范围
1.bean的作用域作用域描述singleton 在每个Spring IoC容器中一个bean定义对应一个对象实例。prototype 一个bean定义对应多个对象实例。request 在一次HTTP请求中,一个bean定义对应一个实例;即每次HTTP请求将会有各自的原创 2014-04-16 16:23:02 · 512 阅读 · 0 评论 -
spring 学习笔记(2)--IOC(DI)
1.IOC(DI)(控制反转和依赖注入)的好处:1)原创 2014-04-16 13:27:21 · 548 阅读 · 0 评论 -
spring学习笔记(7)--lifeCyle
1.lazy-init原创 2014-04-16 22:03:03 · 450 阅读 · 0 评论 -
spring学习笔记(10)--@Component
使用@Component的方式bean.xml原创 2014-04-17 20:36:14 · 459 阅读 · 0 评论 -
spring学习笔记(9)--@Resource
1.Spring 也提供了使用 JSR-250 bean 属性支持的注射方式。这是一种在 Java EE 5 与 Java 6 中普遍使用的方式(例如,在 JSF 1.2 中映射 beans 或者 JAX-WS 2.0 端点),对于Spring 托管的对象 Spring 可以以这种方式支持映射。原创 2014-04-17 20:11:48 · 467 阅读 · 0 评论 -
Spring 数据源连接池 数据库访问哲学jdbcTemplate
1.DAO是数据访问对象的缩写,DAOtig原创 2014-05-21 13:23:04 · 554 阅读 · 0 评论