隨筆-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 閱讀(1321) 評論(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  回復  更多評論
            
          主站蜘蛛池模板: 金沙县| 娄底市| 项城市| 文安县| 昌吉市| 师宗县| 太保市| 浪卡子县| 河南省| 天全县| 安康市| 西乡县| 庆城县| 柏乡县| 彩票| 陵川县| 甘德县| 台南市| 米脂县| 琼海市| 襄樊市| 宁城县| 长武县| 鄂州市| 宣武区| 长宁县| 建湖县| 伊通| 青岛市| 东丽区| 昌乐县| 南郑县| 桦川县| 庆云县| 辉南县| 中山市| 马尔康县| 静宁县| 北宁市| 普宁市| 旬阳县|