applicationContext.xml
spring2.5  配置  所需jar<?xml version="1.0" encoding="UTF-8"?>
spring2.5  配置  所需jar
<beans xmlns="http://www.springframework.org/schema/beans"
spring2.5  配置  所需jar        xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance"
spring2.5  配置  所需jar        xmlns:context
="http://www.springframework.org/schema/context"
spring2.5  配置  所需jar        xmlns:tx
="http://www.springframework.org/schema/tx"
spring2.5  配置  所需jar        xsi:schemaLocation
="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
spring2.5  配置  所需jar                http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
spring2.5  配置  所需jar                http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"
>
spring2.5  配置  所需jar                
spring2.5  配置  所需jar                
spring2.5  配置  所需jar    
spring2.5  配置  所需jar
spring2.5  配置  所需jar      
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
spring2.5  配置  所需jar
spring2.5  配置  所需jar           
<property name="driverClassName">
spring2.5  配置  所需jar
spring2.5  配置  所需jar                 
<value>com.mysql.jdbc.Driver</value>
spring2.5  配置  所需jar
spring2.5  配置  所需jar            
</property>
spring2.5  配置  所需jar
spring2.5  配置  所需jar           
<property name="url">
spring2.5  配置  所需jar
spring2.5  配置  所需jar                 
<value>jdbc:mysql://localhost:3306/htwebsite</value>
spring2.5  配置  所需jar
spring2.5  配置  所需jar           
</property>
spring2.5  配置  所需jar
spring2.5  配置  所需jar           
<property name="username">
spring2.5  配置  所需jar
spring2.5  配置  所需jar                 
<value>root</value>
spring2.5  配置  所需jar
spring2.5  配置  所需jar           
</property>
spring2.5  配置  所需jar
spring2.5  配置  所需jar           
<property name="password">
spring2.5  配置  所需jar
spring2.5  配置  所需jar                 
<value>root</value>
spring2.5  配置  所需jar
spring2.5  配置  所需jar           
</property>
spring2.5  配置  所需jar
spring2.5  配置  所需jar      
</bean>
spring2.5  配置  所需jar
spring2.5  配置  所需jar    
spring2.5  配置  所需jar    
<!-- hibernate3 session Bean-->
spring2.5  配置  所需jar
spring2.5  配置  所需jar      
<bean id="sessionFactory"
spring2.5  配置  所需jar
spring2.5  配置  所需jar      class
="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
spring2.5  配置  所需jar
spring2.5  配置  所需jar           
<property name="dataSource"> <!-- 注入数据源 -->
spring2.5  配置  所需jar
spring2.5  配置  所需jar              
<ref local="dataSource" />
spring2.5  配置  所需jar
spring2.5  配置  所需jar           
</property>
spring2.5  配置  所需jar
spring2.5  配置  所需jar         
spring2.5  配置  所需jar
spring2.5  配置  所需jar           
<property name="hibernateProperties">
spring2.5  配置  所需jar
spring2.5  配置  所需jar                 
<props>
spring2.5  配置  所需jar
spring2.5  配置  所需jar                      
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
spring2.5  配置  所需jar
spring2.5  配置  所需jar                      
<prop key="hibernate.show_sql">true</prop>
spring2.5  配置  所需jar
spring2.5  配置  所需jar                 
</props>
spring2.5  配置  所需jar
spring2.5  配置  所需jar           
</property>
spring2.5  配置  所需jar
spring2.5  配置  所需jar      
</bean>
spring2.5  配置  所需jar       
<!-- 事务管理 -->
spring2.5  配置  所需jar
spring2.5  配置  所需jar      
<bean id="transactionManager"
spring2.5  配置  所需jar
spring2.5  配置  所需jar           class
="org.springframework.orm.hibernate3.HibernateTransactionManager">
spring2.5  配置  所需jar
spring2.5  配置  所需jar           
<property name="sessionFactory">
spring2.5  配置  所需jar
spring2.5  配置  所需jar                 
<ref local="sessionFactory" />
spring2.5  配置  所需jar
spring2.5  配置  所需jar           
</property>
spring2.5  配置  所需jar
spring2.5  配置  所需jar      
</bean>
spring2.5  配置  所需jar    
<bean id="shoppingAction"  class="aaa.bbb">
spring2.5  配置  所需jar    
spring2.5  配置  所需jar    
</bean>
spring2.5  配置  所需jar
</beans>
spring2.5  配置  所需jar
spring2.5  配置  所需jar

web.xml
spring2.5  配置  所需jar<?xml version="1.0" encoding="UTF-8"?>
spring2.5  配置  所需jar
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
spring2.5  配置  所需jar    
<display-name>
spring2.5  配置  所需jar    test
</display-name>
spring2.5  配置  所需jar    
<welcome-file-list>
spring2.5  配置  所需jar        
<welcome-file>index.html</welcome-file>
spring2.5  配置  所需jar        
<welcome-file>index.htm</welcome-file>
spring2.5  配置  所需jar        
<welcome-file>index.jsp</welcome-file>
spring2.5  配置  所需jar        
<welcome-file>default.html</welcome-file>
spring2.5  配置  所需jar        
<welcome-file>default.htm</welcome-file>
spring2.5  配置  所需jar        
<welcome-file>default.jsp</welcome-file>
spring2.5  配置  所需jar    
</welcome-file-list>
spring2.5  配置  所需jar    
<listener>
spring2.5  配置  所需jar        
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
spring2.5  配置  所需jar    
</listener>
spring2.5  配置  所需jar
</web-app>


这么简单个东西,一直短 jar 包
找了好久才成功运行
https://files.cnblogs.com/gwazy/lib.part1.rar
https://files.cnblogs.com/gwazy/lib.part2.rar

相关文章: