随笔-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 阅读(1301) 评论(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  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航: