请问一下怎么修改logback输出的mybatis的日志的格式?

骑着蜗牛撞死你 发布于 2016/06/16 11:33
阅读 566
收藏 0
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@95ee87] was not registered for synchronization because synchronization is not active
JDBC Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@40a6a1] will not be managed by Spring
==>  Preparing: select DISTINCT tm.* from t_user_vs_role tu ,t_role tr,t_role_vs_menu tv,t_menu tm where tu.role_id=tr.id and tv.role_id=tr.id and tm.id=tv.menu_id and tu.user_id=?
==> Parameters: 1(String)
<==    Columns: id, menu_name, menu_url, parent_id, menu_order, input_code, menu_icon, disable, create_id, create_time, create_name
<==        Row: 1, 权限管理, , 0, 1, XTGL, icon-sys, 0, null, null, null
<==        Row: 2, 用户管理, ../sys/sysUserInit, 1, 2, CZRY, icon-users, 0, null, null, null
<==        Row: 3, 角色管理, ../sys/sysRoleInit, 1, 3, JSGL, icon-role, 0, null, null, null
<==        Row: 4, 菜单管理, ../sys/sysMenuInit, 1, 4, CDGL, icon-set, 0, null, null, null
                .......这里隐藏了结果,基本都和上面差不多

<==      Total: 22


我想配置到最后只输出一条sql和相关传入的参数

加载中
返回顶部
顶部