本帖最后由 coolboyyzy 于 2013-03-21 21:18:56 编辑

解决方案 »

  1.   

    贴一下吧:junit错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Implementing class..
      

  2.   

    <bean id="sessionFactory"
    class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
    <property name="dataSource" ref="dataSource" />
    <property name="namingStrategy">
    <bean class="org.hibernate.cfg.ImprovedNamingStrategy" />
    </property>
    <property name="hibernateProperties">
    <props>
    <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
    <prop key="hibernate.show_sql">true</prop>
    <prop key="hibernate.format_sql">true</prop>
    </props>
    </property>
    <property name="packagesToScan" >
    <list>
    <value>yangzy.entity</value>
    </list>
    </property>
    </bean>sessionFactory
      

  3.   

    是这样的,公司用的就是maven,自己不要太会整,就想整个简单的试试,没想到那么难整
      

  4.   

    选中项目,点击右键----》构建路径----》配置路径---》库-----》添加外部jar----》确定
    这样就可以导入 jar包了,不知道是不是你想要的~~~
      

  5.   

    少了servlet-api.jar 和  jsp-api.jar