摘要: 1.所需要的jar包spring基本jar包+ commons-dbcp.jar commons-pool.jar数据库驱动mysql-connector-java-3.1.13-bin.jar如果采用注解方式管理组件要引入common-annotations.jar2.注解方式管理事务的XML的配置<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="h 阅读全文
posted @ 2012-03-20 20:53 kuailewangzi1212 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 1.xml配置方式,需要将myInterceptor类中的注解去掉<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context"x 阅读全文
posted @ 2012-03-20 20:36 kuailewangzi1212 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1.基本组件管理需要的jar包commons-logging.jar,spring.jarxml配置文件<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.o 阅读全文
posted @ 2012-03-20 19:14 kuailewangzi1212 阅读(889) 评论(0) 推荐(0) 编辑