隨筆-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 但是不選擇任務(wù)包
          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 |
          大哥我怎么還是不行呀!照樣做了的呢!他就是啟動服務(wù)器就是報錯!
          嚴重: 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  回復(fù)  更多評論
            
          主站蜘蛛池模板: 丁青县| 临邑县| 麟游县| 兖州市| 郓城县| 紫金县| 广灵县| 德安县| 阳东县| 景洪市| 若羌县| 望江县| 建阳市| 砀山县| 太和县| 彭泽县| 青冈县| 五常市| 屯留县| 上杭县| 宁蒗| 哈巴河县| 海盐县| 永寿县| 岳西县| 西贡区| 上蔡县| 武安市| 中山市| 黄骅市| 资源县| 西城区| 衡阳县| 广河县| 肥城市| 黄冈市| 旺苍县| 平谷区| 西贡区| 阿克陶县| 磐石市|