hibernate框架控制台输出sql语句

版权声明:博客知识产权来源命运的信徒,切勿侵权 https://blog.csdn.net/qq_37591637/article/details/84846965

hibernate.cfg.xml文件里

<property name="hibernate.show_sql">true</property><!-- 配置显示sql语句 -->
    <property name="format_sql">true</property>
	<property name="use_sql_comments">true</property>

猜你喜欢

转载自blog.csdn.net/qq_37591637/article/details/84846965