Hibernate4.3.11 如何去掉红色的日志文字
来源:互联网 发布:淘宝男装代理一手货源 编辑:程序博客网 时间:2024/05/01 10:48
四月13, 2017 2:41:11 下午 org.hibernate.annotations.common.reflection.java.JavaReflectionManager <clinit>INFO: HCANN000001: Hibernate Commons Annotations {4.0.5.Final}四月 13, 2017 2:41:11 下午 org.hibernate.Version logVersionINFO: HHH000412: Hibernate Core {4.3.11.Final}四月 13, 2017 2:41:11 下午 org.hibernate.cfg.Environment <clinit>INFO: HHH000206: hibernate.properties not found四月 13, 2017 2:41:11 下午 org.hibernate.cfg.Environment buildBytecodeProviderINFO: HHH000021: Bytecode provider name : javassist四月 13, 2017 2:41:11 下午 org.hibernate.cfg.Configuration configureINFO: HHH000043: Configuring from resource: /hibernate.cfg.xml四月 13, 2017 2:41:11 下午 org.hibernate.cfg.Configuration getConfigurationInputStreamINFO: HHH000040: Configuration resource: /hibernate.cfg.xml四月 13, 2017 2:41:12 下午 org.hibernate.cfg.Configuration addResourceINFO: HHH000221: Reading mappings from resource: com/cch/model/Student.hbm.xml四月 13, 2017 2:41:12 下午 org.hibernate.cfg.Configuration doConfigureINFO: HHH000041: Configured SessionFactory: null四月13,2017 2:41:12 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configureWARN: HHH000402: Using Hibernate built-in connection pool (not for production use!)四月 13, 2017 2:41:12 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreatorINFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql://localhost:3306/hibernate]四月 13, 2017 2:41:12 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreatorINFO: HHH000046: Connection properties: {user=root, password=****}四月 13, 2017 2:41:12 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreatorINFO: HHH000006: Autocommit mode: false四月 13, 2017 2:41:12 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configureINFO: HHH000115: Hibernate connection pool size: 1 (min=1)四月 13, 2017 2:41:12 下午 org.hibernate.dialect.Dialect <init>INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLInnoDBDialect四月 13, 2017 2:41:12 下午 org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateServiceINFO: HHH000399: Using default transaction strategy (direct JDBC transactions)四月 13, 2017 2:41:12 下午 org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory <init>INFO: HHH000397: Using ASTQueryTranslatorFactory四月 13, 2017 2:41:13 下午 org.hibernate.tool.hbm2ddl.SchemaExport executeINFO: HHH000227: Running hbm2ddl schema exportHibernate: drop table if exists StudentHibernate: drop table if exists _teacherHibernate: create table Student ( id integer not null, name varchar(255), age integer, primary key (id) ) type=InnoDBHibernate: create table _teacher ( id integer not null, name varchar(255), title varchar(255), primary key (id) ) type=InnoDB四月 13, 2017 2:41:13 下午 org.hibernate.tool.hbm2ddl.SchemaExport executeINFO: HHH000230: Schema export completeHibernate: insert into _teacher (name, title, id) values (?, ?, ?)四月 13, 2017 2:41:13 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl stopINFO: HHH000030: Cleaning up connection pool [jdbc:mysql://localhost:3306/hibernate]
- hibernate默认用的slf4j
-
导入支持log4j的三个jar包
导入hibernate包里的lib目录下的optional下的encache下会找到slf4j-api.jar,然后根据这个版本去下载其他两个对应的jar包slf4j-log4j12.jar和log4j12.jar,注意版本的对应。
我的是:log4j-1.2.16.jar+slf4j-api-1.6.1.jar slf4j-log4j12-1.6.1.jar
下载链接:http://download.csdn.net/detail/hgg923/8435335
-
找到hibernate-release-4.3.11.Final\project\etc下的log4j.properties
拷进src下修改其中的配置就可以了
保留自己想看的,其它的用'#'注释掉
如:#log4j.logger.org.hibernate=debug
然后测试一下就可以了
1 0
- Hibernate4.3.11 如何去掉红色的日志文字
- Hibernate4.3.11 如何搭建Log4j日志环境
- 如何去掉WORD文档的红色波纹下划线?
- 如何去掉EditorGridPanel的“dirty”标记(红色小三角形)?
- word 2007如何去掉英文下面的红色…
- 去掉VASSISTX的红色下划线
- vs2010 如何去掉红色波浪线
- xmind的备注note中红色下划线如何去掉(转自百度)
- VS2010里的红色波浪线去掉
- word 中如何去掉复制的文字的底纹?
- 如何去掉桌面文字背景
- iOS :button上如何去掉文字的下划线
- TableView中如何实现点中cell的文字变为红色,其他cell的文字是黑色
- Hibernate4日志
- 如何动态修改输入法键盘红色框中(右下角)的文字,以及 如何监听右下角按钮的点击事件?
- 去掉桌面图标文字的阴影
- Word去掉红色曲线
- ExtJS 去掉TreePanel左上角的红色小三角
- 微信小程序
- 最高者序号和成绩和平均成绩
- [PlantSimulation]Mobile Units
- 项目分类表
- 浅析python中@装饰器的作用
- Hibernate4.3.11 如何去掉红色的日志文字
- MyEclipse常用快捷键
- BaseDao(反射)
- javaScript语言----对象
- mysql中间件研究(Atlas,cobar,TDDL)(转)
- c3p0和dbcp连接池解析
- Permutation in String
- 取得客户端的ip、地理信息、浏览器、本地真实IP
- [Android7.0]NFC初始化的流程分析