隨筆-14  評(píng)論-34  文章-0  trackbacks-0
          原文:http://user.qzone.qq.com/17882384/blog/1205207879
          1、加入struts1.2的支持
          2、加入spring2.0的支持
          加入的包有:
                      Spring2.0 AOP Libraries(對(duì)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、加入包c(diǎn)ommons-pool.jar spring.jar
          6、刪除包asm-2.2.3.jar hibernate-annotaions.jar
          posted on 2008-03-19 15:47 Jam Chan 閱讀(1321) 評(píng)論(1)  編輯  收藏 所屬分類(lèi): SSH整合

          評(píng)論:
          # re: myeclipse6.0 ssh工程步驟 2008-10-29 01:19 |
          大哥我怎么還是不行呀!照樣做了的呢!他就是啟動(dòng)服務(wù)器就是報(bào)錯(cuò)!
          嚴(yán)重: 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ù)  更多評(píng)論
            
          主站蜘蛛池模板: 南乐县| 云南省| 绥德县| 华安县| 淮滨县| 基隆市| 韶关市| 邢台县| 磐石市| 陈巴尔虎旗| 台南县| 专栏| 华阴市| 河西区| 陵川县| 通化县| 昌图县| 安新县| 竹北市| 叙永县| 驻马店市| 从江县| 泰来县| 宾川县| 山东省| 柳林县| 娱乐| 华宁县| 依兰县| 大埔县| 辽源市| 龙门县| 隆德县| 玉山县| 苍梧县| 融水| 杭州市| 永定县| 平度市| 新邵县| 萨迦县|