Skip to content

Instantly share code, notes, and snippets.

@cuongld2
Created March 18, 2020 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cuongld2/2ce43a12b7184d4a4fd7c279d8380a00 to your computer and use it in GitHub Desktop.
Save cuongld2/2ce43a12b7184d4a4fd7c279d8380a00 to your computer and use it in GitHub Desktop.
hibernate-config-jdbc
<?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>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">
jdbc:mysql://localhost:3306/restapi
</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">cuong1990</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.default_schema">restapi</property>
<property name="show_sql">true</property>
<property name="hibernate.temp.use_jdbc_metadata_defaults">false</property>
</session-factory>
</hibernate-configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment