【发布时间】:2015-12-17 01:08:22
【问题描述】:
以下是我的 hibernate.cfg.xml 文件
<!DOCTYPE hibernate-configuration SYSTEM
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hbm2ddl.auto">update</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:xe</property>
<property name="connection.username">bala</property>
<property name="connection.password">bala</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<mapping resource="Products.hbm.xml" />
将“PUBLIC”更改为 SYSTEM 时出现错误。如果我关闭互联网连接,我将无法运行我的网络应用程序
我的问题如何在没有互联网连接的情况下执行 Hibernate Web 程序?
【问题讨论】:
-
你能发布完整的 hibernat.cfg.xml 吗?发布的配置没有一些结束标签。
-
无法发布完整的 hibernate..cfg.xml 。错过的行是
true
标签: xml hibernate web-applications configuration