我希望减少hibernate在控制台上记录的大量信息。这是样本:
21:59:20.474 [main] DEBUG org.jboss.logging - Logging Provider:
org.jboss.logging.Slf4jLoggerProvider
21:59:20.490 [main] DEBUG org.hibernate.type.BasicTypeRegistry
- Adding type registration boolean -> org.hibernate.type.BooleanType@5f150435
21:59:20.490 [main] DEBUG org.hibernate.type.BasicTypeRegistry
- Adding type registration boolean -> org.hibernate.type.BooleanType@5f150435还有几百个..。
这发生在我使用maven进行hibernate时。我以前使用过hibernate,但我手动下载了jars,并进行了一些正常的日志记录。这是不可接受的。知道怎么减少/消除吗?
我试着用POM排除jar。但效果是一样的:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.3.7.Final</version>
<exclusions>
<exclusion>
<artifactId>jboss-logging</artifactId>
<groupId>org.jboss.logging</groupId>
</exclusion>
<exclusion>
<artifactId>jboss-logging-annotations</artifactId>
<groupId>org.jboss.logging</groupId>
</exclusion>
</exclusions>
</dependency>发布于 2014-12-16 21:07:19
https://stackoverflow.com/questions/27513866
复制相似问题