晚上还可以启动的项目,第二天就启动不起来了,
报出错误:The markup declarations contained or pointed to by the document type declaration must be well-formed. Nested exception: The markup declarations contained or pointed to by the document type declaration must be well-formed.
也没有改过什么。就是启不来,找了半天
原因为:
<hibernate-mapping package="com.demo.hibernate.beans">
<class name="User" table="user">
<id name="id" column="ID" type="integer">
<generator class="native"/>
</id>
<property name="username" column="username" type="String" />
<property name="password" column="password" type="String" />
<property name="email" column="email" type="String" />
</class>
</hibernate-mapping>
把 type="String"----->type="java.lang.String"
搞定~~~
报出错误:The markup declarations contained or pointed to by the document type declaration must be well-formed. Nested exception: The markup declarations contained or pointed to by the document type declaration must be well-formed.
也没有改过什么。就是启不来,找了半天
原因为:
<hibernate-mapping package="com.demo.hibernate.beans">
<class name="User" table="user">
<id name="id" column="ID" type="integer">
<generator class="native"/>
</id>
<property name="username" column="username" type="String" />
<property name="password" column="password" type="String" />
<property name="email" column="email" type="String" />
</class>
</hibernate-mapping>
把 type="String"----->type="java.lang.String"
搞定~~~
本文介绍了一个关于Hibernate启动失败的问题及解决方案。问题表现为项目突然无法启动,并抛出文档类型声明必须格式良好的错误。通过调整Hibernate配置文件中属性类型声明的方式,成功解决了启动问题。
9228

被折叠的 条评论
为什么被折叠?



