SSH实现在MyEclipse控制台上显示SQL语句

在applicationContext.xml中的<property name=”hibernateProperties”>*********<property name=”hibernateProperties”>的地方加入开关
<prop key=”hibernate.show_sql”>
true
</prop>

可以实现查询数据库里面的内容时在显示栏显示SQL语句
即代码如下

<property name="hibernateProperties">
 <props>
 <prop key="hibernate.dialect">
 org.hibernate.dialect.SQLServerDialect
 </prop>
 <prop key="hibernate.show_sql">
 true
 </prop>
 </props>
 <property name="hibernateProperties">

标签:

分享:

发表评论

邮箱地址不会被公开。 必填项已用*标注

😉😐😡😈🙂😯🙁🙄😛😳😮:mrgreen:😆💡😀👿😥😎😕

验证码 *