自己顶。。高手们帮帮忙啊 

解决方案 »

  1.   

    自己顶。。高手们帮帮忙啊 
      

  2.   

    建议换更高版本的spring,spring2.0跟hibernate集成的就很好了,不需要那个hibernate.cfg.xml了
    另外和struts集成如果在Action里需要注入属性的话要这么配置:struts-config.xml    <action
          name="XXForm"
          parameter="method"
          path="/xxAction"
          scope="request"
         <!--type这里一定不能是你的action类,要写spring的这个代理,action类在applicationContext.xml中写-->
          type="org.springframework.web.struts.DelegatingActionProxy" 
          validate="false">
          <forward name="xxx" path="/xxx.jsp" />
        </action>
        <plug-in
    className="org.springframework.web.struts.ContextLoaderPlugIn">
    <set-property property="contextConfigLocation"
    value="WEB-INF/applicationContext.xml" />
    </plug-in>
    applicationContext.xml
    <!-- 用户Actions ,这里才配置你的action类-->
    <bean name="/xxAction"
    class="xx.xx.XXAction">
    <property name="xxproperty" ref="xxBean"></property>
    </bean>