我正在为我的项目使用 JPA ...
我的问题是:Whenever we are executing some query using the JPA the query is logged in the server.log file of the **JBOSS** .
我正在使用 Jboss log4J。
但我想避免在 server.log 文件中打印查询。在不更改以下属性的情况下:
<property name="hibernate.show_sql" value="true"/>
相反,我尝试了:
<category name="org.hibernate">
<priority value="ERROR" />
</category>
中log4j.xml
,即使查询正在控制台或 server.log 中记录以进行成功查询。
谁能帮我解决这个问题……?
我必须在哪里更改配置以避免 server.log 中的查询记录?