<1> 配置web.xml

 

  

xmlns="http://java.sun.com/xml/ns/javaee" 

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 

http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

 

    org.springframework.web.context.ContextLoaderListener

 

   contextConfigLocation

    

 

   classpath*:beans.xml

 

    Struts Blank

   

        struts2

        org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

   

 

    

        struts2

        /*

   

 

 

    index.jsp

 

 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------

<2>beans.xml

 

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"

xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"

xsi:schemaLocation="http://www.springframework.org/schema/beans

           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd

           http://www.springframework.org/schema/context                  

           http://www.springframework.org/schema/context/spring-context-2.5.xsd

           http://www.springframework.org/schema/aop

           http://www.springframework.org/schema/aop/spring-aop-2.5.xsd

            http://www.springframework.org/schema/tx

            http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">

 

 

   

 

   

    classpath:jdbc.properties

   

 

   

   

   

   

org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">

com.lixing.registor.model

org.hibernate.dialect.MySQLDialect

true

true