spring2.5搭建环境
2011-08-02 20:38
344 查看
降低组建之间的解哦
控制事务
提供单例模式
AOP面向切面
辅助类
对主流框架支持
对配置文件读取
反射实例化bean
三种实例化方式
1调用默认构造器
2静态工厂
3实例工厂
控制事务
提供单例模式
AOP面向切面
辅助类
对主流框架支持
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"> <bean id="personService" class="net.itdos.service.impl.PersonServiceBean"></bean> </beans>
ApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml"); PersonService personService = (PersonService)ctx.getBean("personService"); personService.save();
对配置文件读取
反射实例化bean
三种实例化方式
1调用默认构造器
2静态工厂
3实例工厂
相关文章推荐
- eclipse环境搭建ssh(Struts2+Spring2.5+Hibernate3)框架小谈(上)
- eclipse环境搭建ssh(Struts2+Spring2.5+Hibernate3)框架小谈(下)
- ssh环境搭建(1)-lib篇(spring4.2.6+struts2.5+hibernate5.1 )
- ssh环境搭建(2)-config篇(spring4.2.6+struts2.5+hibernate5.1 )
- Spring2.5开发环境搭建
- NetBeans6.1下搭建Struts2.0+Spring2.5+Hibernate3开发环境
- Spring2.5教程:2、搭建与测试Spring的开发环境
- Java Spring开发环境搭建及简单入门示例教程
- Spring-WebSocket服务器环境搭建
- JAVA-WEB的SSH(Spring Hibernate Struts)环境搭建一(Spring+Hibernate)
- dubbo+SpringMVC环境搭建
- osgi&nbsp;spring环境搭建
- SSH与SSM学习之Spring01——介绍、搭建环境与第一个例子
- spring环境搭建
- Spring与Mybatis环境搭建
- web框架之Spring-MVC环境搭建
- springboot手把手教程实战-环境搭建-001
- Spring Boot / Spring MVC 入门实践 (一) :环境搭建与第一个项目
- 基于注解的SPRINGMVC+FREEMARKER环境搭建
- SpringMVC+Mybatis+Mysql实战项目学习--环境搭建【转】