问题描述
执行数据库查询时,就会在控制台打印这些日志,麻烦大侠指导如何关闭这些mybatis日志?00:01:02.172[Thread-10]DEBUGorg.mybatis.spring.SqlSessionUtils-CreatinganewSqlSession00:01:02.172[Thread-10]DEBUGorg.mybatis.spring.SqlSessionUtils-SqlSession[org.apache.ibatis.session.defaults.DefaultSqlSession@1952be0]wasnotregisteredforsynchronizationbecausesynchronizationisnotactive00:01:02.172[Thread-10]DEBUGo.m.s.t.SpringManagedTransaction-JDBCConnection[com.mchange.v2.c3p0.impl.NewProxyConnection@174be7]willnotbemanagedbySpring00:01:02.172[Thread-10]DEBUGc.h.r.c.dao.WlanDao.getWlanLimitTime-oooUsingConnection[com.mchange.v2.c3p0.impl.NewProxyConnection@174be7]00:01:02.172[Thread-10]DEBUGc.h.r.c.dao.WlanDao.getWlanLimitTime-==>Preparing:selecttime_limitfromrm_t_wlanrtwwherertw.wlan_type=?00:01:02.172[Thread-10]DEBUGc.h.r.c.dao.WlanDao.getWlanLimitTime-==>Parameters:1(Integer)
解决方案
解决方案二:
org.mybatis=ERROR把它的日志级别设置高一点,我看你上面都是debug开着在
解决方案三:
log4j.rootLogger=ERROR,最高级别了。。。