配置问题。检查 Employee.hbm.xml 配置。

解决方案 »

  1.   

    把你的spring.xml贴出来看看,光看错误异常信息是找不到解决方法的 只能分析原因
      

  2.   

    applicationContext.xml文件 <beans>声明加命名空间
    <beans xmlns="http://www.springframework.org/schema/beans" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
    .......
    <beans>
      

  3.   

    把Spring的配置文件粘出来看看?看看里面是怎么配的
      

  4.   

    配置文件sessionFactory 配置错误、
      

  5.   

    明显提示Employee.hbm.xml文件配置错误,你的映射文件对应好数据库表了么,定义的类中字段类型是否和数据库中一直。。
      

  6.   

    上面报的错说,你映射文件的的xml格式不正确。
      

  7.   

    错误信息提示没有init方法,你是不是指定了init属性,但是没有定义init方法。