zoukankan      html  css  js  c++  java
  • hibernate打印sql日志及参数

    #log4j.properties

    log4j.rootLogger=info, CA
    # ConsoleAppender
    log4j.appender.CA=org.apache.log4j.ConsoleAppender
    log4j.appender.CA.layout=org.apache.log4j.PatternLayout
    log4j.appender.CA.layout.ConversionPattern=%d{hh:mm:ss,SSS} [%t] %-5p %c %x - %m%n

    #u4E3Au4E86u663Eu793Au53C2u6570
    log4j.logger.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
    log4j.loggerorg.hibernate.type.descriptor.sql.BasicExtractor=TRACE

    #u67E5u770Bu67E5u8BE2u4E2Du547Du540Du53C2u6570u7684u503C
    log4j.logger.org.hibernate.engine.QueryParameters=DEBUG
    log4j.logger.org.hibernate.engine.query.HQLQueryPlan=DEBUG

  • 相关阅读:
    生成密码
    生成密码
    C#委托
    C#委托
    C#委托
    最近所有博客
    win10 uwp 读写XML
    win10 uwp 读写XML
    win10 uwp 读写XML
    win10 uwp 绑定密码
  • 原文地址:https://www.cnblogs.com/wolf12/p/6519343.html
Copyright © 2011-2022 走看看