Spring

使用Spring需要的jar
dist\spring.jar
lib\jakarata-commons\commons-logging.jar
如果使用了切面编程,还需要下列jar文件
lib/aspect/aspectjweaver.jar和aspectjrt.jar
lib/cglib/cglib-nodep-2.1_3.jar
如果使用了JSR-250中的注解,如 @Resource/ @PostConstruct/ @PreDestroy,还需要下列jar文件
lib\j2ee\common-annotations.jar

spring的配置文件模板
<?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">
       ......
</beans>
该配置模版可以从spring的参考手册或spring的例子中得到。配置文件的取名可以任意,文件可以存放在任何目录下,但考虑到通用性,一般放在类路径下。

 

posted @ 2011-12-19 17:28  残星  阅读(277)  评论(0编辑  收藏  举报