Struts 2+spring 2.5+hibernate 3.2構成レコード


myeclipse 6.5での統合
1、spring 2.5を追加する場合、springの先頭にあるすべてのパッケージとhibernate 2.5を追加します.
2、struts 2「空のプロジェクト」のすべてのパッケージを手動で追加し、struts 2-spring-plugin-2.1.1.1.jarも追加します.
3、struts構成struts.xml
<constant name="struts.objectFactory" value="org.apache.struts2.spring.StrutsSpringObjectFactory" />

4、web.xml構成
   <!--   spring     -->
    <context-param>
    	<param-name>contextConfigLocation</param-name>
    	<param-value>classpath:applicationContext.xml</param-value>
	</context-param>

    <!--      -->
    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
        
    <filter>
        <filter-name>struts2</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>