spring-config.xml



      
    
    
      
      
    
    
      
        
        
        
        
      
    


事务需要添加的jar

com.springsource.org.aopalliance-1.0.0.jar

com.springsource.org.aspectj.weaver-1.7.2.RELEASE.jar

http://ebr.springsource.com/repository/app/bundle/version/detail?name=com.springsource.org.aopalliance&version=1.0.0&searchType=bundlesBySymbolicName&searchQuery=aopalliance


http://ebr.springsource.com/repository/app/bundle/version/detail?name=com.springsource.org.aspectj.weaver&version=1.7.2.RELEASE&searchType=bundlesBySymbolicName&searchQuery=aspectj.weaver


log4j.properties

log4j.rootLogger=ERROR, log
log4j.appender.log=org.apache.log4j.DailyRollingFileAppender
log4j.appender.log.file=C:/logs/test.log
log4j.appender.log.layout=org.apache.log4j.PatternLayout
log4j.appender.log.layout.ConversionPattern=%d{ABSOLUTE} %5p %t %c{2}:%L - %m%n
log4j.category.org.springframework.beans.factory=DEBUG