知道是配置文件的问题,仔细重新比照检查,发现
<mapping resource="com/bjsxt/hibernate/User.hbm.xml"/>
中少了个“/”
其他出现此错误也应是此配置文件hibernate.cfg.xml出错。