当前位置: 代码迷 >> SQL >> 格式化Hibernate的SQL输出话语
  详细解决方案

格式化Hibernate的SQL输出话语

热度:59   发布时间:2016-05-05 13:32:38.0
格式化Hibernate的SQL输出语句
在 applicationContent.xml 文件中加入以下程序代码,及可以Console中看到 Hibernate 执行sql 语句.
<props>
  <prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
  </prop>
  <prop key="hibernate.show_sql">true</prop>
  <prop key="hibernate.format_sql">true</prop>
  <prop key="hibernate.use_sql_comments">false</prop>
</props>
  相关解决方案