Comments (6)
我这样配置就成功了
log4j.logger.SELECT=debug
不知道为什么日志输出的是如下的, SELECT
是什么意思
SELECT.1915324600 | ==> Preparing: select IFNULL(a.cont_click,0) as `cont_click`,a.*,b.class_name,c.user_truename,d.name `type_title`, b.class_folder,b.cont_templet as class_cont_templet,b.class_templet as class_templet from l_cont as a left join l_class as b on a.class_id=b.class_id left join l_admin as c on a.edit_userid=c.id left join tzzs_type as d on a.typeId=d.id where 1=1 AND a.class_id='4' AND a.sign='3' AND a.cont_commen='1' order by edit_date desc limit 0,8
[bbs] 2016-10-08 13:38:33,948 DEBUG [RMI TCP Connection(3)-127.0.0.1] SELECT.1915324600 | ==> Parameters:
from mybatis-plus.
与原生 Mybatis 日志一样配置,例如:
<logger name="org.apache.ibatis" additivity="false"> <level value="DEBUG" /> <appender-ref ref="Console" /> </logger>
from mybatis-plus.
SELECT是什么意思!!
也许是说明是查询日志?!
from mybatis-plus.
第一次配日志.... log4j2.xml 里 单独 com.张三.mapper是你自己的mapper所在包,
如果是springboot 配置log4j2.xml 发现 如果root的level设置为debug 控制台信息出现太多, 但是设置为info又看不到请求后执行的sql.(root的level也会影响底下appender的level 能否打印或输出)
from mybatis-plus.
<logger name="com.张三.mapper" level="debug"> <!--<appender-ref ref="debug_appender" />--> </logger>
from mybatis-plus.
logback怎么配置啊
from mybatis-plus.
Related Issues (20)
- 使用默认 JacksonTypeHandler 出现类型解析错误问题 HOT 2
- MybatisSqlSessionFactoryBean找不到org/mybatis/logging/LoggerFactory HOT 1
- 关于springboot+mybatis-plus启动失败 HOT 1
- 为什么会删我sql中间的空格 HOT 1
- 建议:做一个注解,忽略逻辑删除拼接 HOT 1
- 建议:select count()做一些默认处理 HOT 1
- Db新特性Bug,Db.lambdaQuery中的orderByAsc()排序不生效 HOT 3
- LambdaQueryChainWrapper报错can not use this method for getSqlSegment HOT 1
- SqlHelper.sqlSessionFactory(Class<?> clazz)的替代方案 HOT 3
- 逻辑删除 TableLogic delval='id' 对 String 类型主键 id 无效 HOT 3
- 自定义的TypeHandler在执行insert或updateById的时候会触发额外的实例化 HOT 1
- 什么时候能支持多表查询啊? HOT 4
- 使用OrderItem排序的空格问题 HOT 1
- 字段处理,除了@TableField(exist = false)剔除的方式,有没有其他只处理加了@TableField,@TableId这类注解的字段的方式 HOT 1
- 字段中exists关键字导致排序失效 HOT 5
- spring的aop拦截失败 HOT 3
- MyBatis Plus 分页插件 bad SQL grammar [] HOT 2
- select 指定查询的字段在表中为null 时返回null HOT 1
- in查询condition无效,当in查询参数为空时,报空指针错误 HOT 1
- FileOutConfig 缺失
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mybatis-plus.