隨筆-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  回復  更多評論
            
          主站蜘蛛池模板: 襄城县| 固阳县| 永丰县| 淮阳县| 营山县| 怀集县| 涿鹿县| 蓬莱市| 喀什市| 肇东市| 咸丰县| 阳春市| 田林县| 克山县| 施甸县| 小金县| 楚雄市| 延安市| 水城县| 慈利县| 兴宁市| 五河县| 东海县| 威宁| 九龙城区| 融水| 安宁市| 巴中市| 漯河市| 孙吴县| 射洪县| 沈阳市| 安宁市| 阿拉善左旗| 万山特区| 剑川县| 北辰区| 扶余县| 通江县| 巴青县| 石泉县|