Spring3.0最基本配置需要一下几个包
org.springframework.asm-3.0.2.RELEASE.jar
org.springframework.beans-3.0.2.RELEASE.jar
org.springframework.context-3.0.2.RELEASE.jar
org.springframework.core-3.0.2.RELEASE.jar
org.springframework.expression-3.0.2.RELEASE.jar
org.springframework.web-3.0.2.RELEASE.jar
commons-logging-1.1.1.jar
Spring3.0配置文件bean.xml
- <?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-3.0.xsd">
- <!-- services -->
- <bean id="userDao"
- class="fantasy0707.spring.dao.impl.UserDAOImpl"></bean>
- <bean id="service"
- class="fantasy0707.spring.service.UserService">
- <property name="dao" ref="userDao"/>
- <!-- additional collaborators and configuration for this bean go here -->
- </bean>
- <!-- more bean definitions for services go here -->
- </beans>
哈哈,我刚接触Spring3.0,就只会这么多了