hibernate测试错误结果:
看错误第一句org.hibernate.MappingException: invalid configuration
中文意思无效的配置,在hibernate.cfg.xml文件找错误.在看有一句提示语法错误.辗转半天,终于发现自己少些了这些东西
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
所以在编程中一定要细心,细心再细心.