在hibernate.cfg.xml中的session-factory中定义<property name="show-sql">false</property>

解决方案 »

  1.   

    在哪里设置啊?
    log4j.rootLogger=debug, R, C这边改了还是一样啊
    都是些返回值
    [2006-09-15 16:26:21] [DEBUG] [net.sf.hibernate.type.StringType] returning '福建
    省' as column: ADDRESS3_
    [2006-09-15 16:26:21] [DEBUG] [net.sf.hibernate.type.StringType] returning '222'
     as column: TEL3_
    [2006-09-15 16:26:21] [DEBUG] [net.sf.hibernate.type.StringType] returning '1365
    42' as column: FAX3_
      

  2.   

    <property name="show-sql">false</property>