隨筆-14  評論-34  文章-0  trackbacks-0
          原文:http://user.qzone.qq.com/17882384/blog/1205207879
          1、加入struts1.2的支持
          2、加入spring2.0的支持
          加入的包有:
                      Spring2.0 AOP Libraries(對aop的支持)
                      Spring2.0 Core Libraries
                      Spring2.0 Persistence Core Libraries
                      Spring2.0 Persistence JDBC Libraries(JDBC支持)
                      Spring2.0 Testing Suppor Libraries
                      Spring2.0 Web Libraries
                      Hibernate3.2 Core Libraries
                      Hibernate3.2 Annotations & Entity Manager
                      Hibernate3.2 Advanced Support Libraries
          3、加入hibernate 選擇myEclipse Libraries 但是不選擇任務包
          4、配置struts-config.xml文件
          <!-- 控制器 -->
              <controller  processorClass="org.springframework.web.struts.DelegatingRequestProcessor" />
              <!-- struts,spring集成插件 -->
              <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
                  <set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml" />
              </plug-in>

          5、加入包commons-pool.jar spring.jar
          6、刪除包asm-2.2.3.jar hibernate-annotaions.jar
          posted on 2008-03-19 15:47 Jam Chan 閱讀(1315) 評論(1)  編輯  收藏 所屬分類: SSH整合

          評論:
          # re: myeclipse6.0 ssh工程步驟 2008-10-29 01:19 |
          大哥我怎么還是不行呀!照樣做了的呢!他就是啟動服務器就是報錯!
          嚴重: action: null
          org.springframework.beans.factory.BeanCreationException:

          Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userservice' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.hibernate.service.IUserService]: Specified class is an interface  回復  更多評論
            
          主站蜘蛛池模板: 沙雅县| 泰宁县| 海丰县| 酒泉市| 遂宁市| 淮滨县| 运城市| 黑龙江省| 邹城市| 北辰区| 阳谷县| 化隆| 莱阳市| 张家川| 江门市| 涞水县| 正蓝旗| 泾阳县| 美姑县| 建瓯市| 公主岭市| 宣化县| 青铜峡市| 和林格尔县| 拜泉县| 平泉县| 楚雄市| 盈江县| 浦城县| 夹江县| 静安区| 临洮县| 天长市| 峨边| 濉溪县| 宜君县| 南通市| 南部县| 扶风县| 格尔木市| 五大连池市|