<?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">
这是hiberante.cfg.xml的头文件,固定形式,否则无法解析
----------------------------------------------------------------------------------------------------------------------------------
</hibernate-configuration>
</session-factory>
配置信息
</session-factory>
</hibernate-configuration>
----------------------------------------------------------------------------------------------------------------------------------
JDBC配置项目
数据库用户名:<property name="connection.username">sa</property>
数据库密码:<property name="connection.password">sa123!</property>
连接字符串:<property name="connection.url">jdbc:jtds:sqlserver://localhost:1433/tjp_db</property>
驱动类:<property name="connection.driver_class">net.sourceforge.jtds.