Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
按照此处的链接打开 JPA 日志记录
这需要在哪里做?在persistence.xml 中?
<property name="openjpa.Log" value="DefaultLevel=WARN, Runtime=INFO, Tool=INFO, SQL=TRACE"/>
这需要在persistence.xml 中完成,是的。
-Dopenjpa.Log=DefaultLevel=WARN,Runtime=INFO,Tool=INFO,SQL=TRACE
它也可以设置为 JVM 属性。