【log4j】如何关闭mybatis日志
执行数据库查询时,就会在控制台打印这些日志,麻烦大侠指导如何关闭这些mybatis日志?00:01:02.172 [Thread-10] DEBUG org.mybatis.spring.SqlSessionUtils - Creating a new SqlSession
00:01:02.172 [Thread-10] DEBUG org.mybatis.spring.SqlSessionUtils - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1952be0] was not registered for synchronization because synchronization is not active
00:01:02.172 [Thread-10] DEBUG o.m.s.t.SpringManagedTransaction - JDBC Connection [com.mchange.v2.c3p0.impl.NewProxyConnection@174be7] will not be managed by Spring
00:01:02.172 [Thread-10] DEBUG c.h.r.c.dao.WlanDao.getWlanLimitTime - ooo Using Connection [com.mchange.v2.c3p0.impl.NewProxyConnection@174be7]
00:01:02.172 [Thread-10] DEBUG c.h.r.c.dao.WlanDao.getWlanLimitTime - ==> Preparing: select time_limit from rm_t_wlan rtw where rtw.wlan_type=?
00:01:02.172 [Thread-10] DEBUG c.h.r.c.dao.WlanDao.getWlanLimitTime - ==> Parameters: 1(Integer) --------------------编程问答-------------------- org.mybatis=ERROR
把它的日志级别设置高一点,我看你上面都是debug开着在 --------------------编程问答-------------------- log4j.rootLogger=ERROR ,最高级别了。。。
补充:Java , Java EE