I have Web, MySQL,Hibernet and JPA in the project. The configuration is like this:
<hibernate-configuration> <session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/springboot_hibernat</property>
<property name="hibernate.connection.username">root</property>
<property
name="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</property>
<property name="Hbm2ddl.auto">update</property>
<property name="show_sql">true</property> </session-factory> </hibernate-configuration>[enter image description here][1]
I have Web, MySQL,Hibernet and JPA in the project. The configuration is like this:
<hibernate-configuration> <session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/springboot_hibernat</property>
<property name="hibernate.connection.username">root</property>
<property
name="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</property>
<property name="Hbm2ddl.auto">update</property>
<property name="show_sql">true</property> </session-factory> </hibernate-configuration>[enter image description here][1]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.