从提示上说,是你的配置文件hibernate.cfg.xml有问题,现在我贴一个出来,你看看:<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><hibernate-configuration> <session-factory> <!-- Database connection settings -->
<property name="connection.driver_class">
oracle.jdbc.driver.OracleDriver
</property>
<property name="connection.url">
jdbc:oracle:thin:@192.168.0.26:1521:success
</property>
<property name="connection.username">joxp</property>
<property name="connection.password">joxp</property> <!-- JDBC connection pool (use the built-in) -->
<property name="connection.pool_size">1</property> <!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property> <!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property> <mapping resource="com/fttrc/bean/User.hbm.xml"/>
</session-factory></hibernate-configuration>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><hibernate-configuration> <session-factory> <!-- Database connection settings -->
<property name="connection.driver_class">
oracle.jdbc.driver.OracleDriver
</property>
<property name="connection.url">
jdbc:oracle:thin:@192.168.0.26:1521:success
</property>
<property name="connection.username">joxp</property>
<property name="connection.password">joxp</property> <!-- JDBC connection pool (use the built-in) -->
<property name="connection.pool_size">1</property> <!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property> <!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property> <mapping resource="com/fttrc/bean/User.hbm.xml"/>
</session-factory></hibernate-configuration>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货