Spring3.0学习笔记
Spring3.0不但需要Spring的标准jar包,还有些与2.5增加了的一些jar包:aspectjweaver.jar,aspectjrt.jar,log4j-1.2.16.jar,commons-logging-1.1.1.jar,aspectj-1.6.10.jar,asm.jar,cglib-2.1.3.jar,aopalliance.jar,aopalliance-alpha1.jar
package com.fire.test;import org.junit.Test;import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext;import com.fire.service.UserDaoService;public class UserDaoImplTest {@Testpublic void testUserDaoService(){ApplicationContext app = new ClassPathXmlApplicationContext("beans.xml");UserDaoService user = (UserDaoService) app.getBean("userService");}}