the markup of the document following the root element must be well perform

在配置hibernate.cfg.xml文件的时候 

配置内容没有写在

<xml></xml>或<xml-body></xml-body>之间

报错

 

hibernate 的各个配置文件在  project\etc路径下都可以找到例子

 

SQLServerDialect 源于  org.hibernate.dialect.SQLServerDialect;

 

registerHibernateType(Types.LONGVARCHAR,Hibernate.STRING.getName());

 

Types 来自 java.sql.Types;

Hiberante 来自 org.hibernate.Hibernate

 

 

 

猜你喜欢

转载自b2125267.iteye.com/blog/1807699