大家。我正在尝试解决下一个问题:当我使用 hebirnate 4 (不是 3)时关闭登录控制台。我在类路径中有下一个 .jar: slf4j-api-1.6.1.jar jboss-logging-3.1.0.GA.jar slf4j-log4j12-1.5.2.jar
正如我所说,日志语句属于 Eclipse 控制台。它看起来像:
2013 年 1 月 31 日下午 3:58:38 org.hibernate.annotations.common.Version INFO:HCANN000001:Hibernate Commons Annotations {4.0.1.Final} 2013 年 1 月 31 日下午 3:59:09 org.hibernate.Version logVersion INFO :HHH000412:Hibernate Core {4.1.9.Final} 2013 年 1 月 31 日下午 3:59:12 org.hibernate.cfg.Environment INFO:HHH000205:从资源 hibernate.properties 加载的属性:{hibernate.connection.driver_class=org. h2.Driver, hibernate.dialect=org.hibernate.dialect.H2Dialect, hibernate.max_fetch_depth=5, hibernate.format_sql=true, hibernate.generate_statistics=true, hibernate.connection.username=sa, hibernate.connection.url=jdbc: h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE, hibernate.bytecode.use_reflection_optimizer=false, hibernate.jdbc.batch_versioned_data=true, hibernate.connection.pool_size=5} 2013 年 1 月 31 日 4:00:04 PM org .hibernate.cfg。环境 buildBytecodeProvider
当我阅读不同的手册和主题(包括 stackoverflow.com)时,我添加到名为“slf4j.properties”的 src 文件夹文件中。
slf4j.properties 包含下一个:
我添加链接是因为 slf4j.properties 文件中的标签(如 ###)会使文本不可读。
那么......如何关闭登录控制台?非常感谢。