springboot2+activiti5.22+mybatisplus 不停打印日志的问题

springboot2+activiti5.22+mybatisplus 不停打印日志的问题,第1张

springboot2+activiti5.22+mybatisplus 不停打印日志的问题

今天遇到一个小问题,springboot2+mybatisplus集成activiti后,控制台不停地输出:
Opening JDBC Connection
==> Preparing: SELECt SUB.* FROM ( select RES.* , row_number() over (ORDER BY RES.ID_ asc) rnk FROM ( select distinct RES.* from ACT_RU_JOB RES LEFT OUTER JOIN ACT_RU_EXECUTION PI ON PI.ID_ = RES.PROCESS_INSTANCE_ID_ where (RES.RETRIES_ > 0) and (RES.DUEDATE_ is null or RES.DUEDATE_ <= ?) and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ <= ?) and TYPE_ = 'timer' and ( (RES.EXECUTION_ID_ is null) or (PI.SUSPENSION_STATE_ = 1) ) )RES ) SUB WHERe SUB.rnk >= ? AND SUB.rnk < ?
==> Parameters: 2022-01-23 15:41:48.99(Timestamp), 2022-01-23 15:41:48.99(Timestamp), 1(Integer), 2(Integer)
<== Total: 0
Closing JDBC Connection [Transaction-aware proxy for target Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@bc6be32]]

本人解决步骤如下:

1、注释红色字体。即mybatis-plus自带的日志打印

mybatis-plus:
  mapper-locations: classpath:mapper*.xml
  type-aliases-package: com.lj.services.**.entity
  configuration:
#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    map-underscore-to-camel-case: false
    database-id: sqlserver
    cache-enabled: false

2、log4j2的配置文件中加入如下配置:


    

希望能帮到有缘人!

 

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5713055.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存