springBoot 启动控制台一直卡住,且报 org.apache.ibatis.logging.stdout.stdout.StdOutImpl

Logging initialized using ‘class org.apache.ibatis.logging.stdout.StdOutImpl’ adapter.

Property ‘mapperLocations’ was not specified.

出现状况:springBoot启动时控制台一直卡在一个地方,没有后续日志打出,情况如下图。在这里插入图片描述
问题分析:在一开始以为是程序报错了,后续自己摸索,报的“org.apache.ibatis.logging.stdout.StdOutImpl”正是配置文件中设置的mybaits将sql语句打印到控制台的配置,且是我在引入logback后才出现的问题。在看下自己配置的logback-spring.xml 配置文件,自己配置的是将日志文件输出到文件中,而不在控制台打印。如下图:

mybatis-plus:
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

在这里插入图片描述
在这里插入图片描述
此时程序并没有报错,只是日志都输出到文档中了。如果想要控制台打印日志只需将logback-spring.xml配置中日志输出改为控制台输出就可以了

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
org.apache.ibatis.logging.stdout.StdOutImpl是MyBatis日志输出的一种实现方式。它将日志信息打印到控制台。 在你的问题描述中,你提到了配置文件中使用了org.apache.ibatis.logging.stdout.StdOutImpl来将SQL语句打印到控制台。然而,你在引入logback后出现了问题。这可能是因为你的logback-spring.xml配置文件将日志输出到文件而不是控制台。 总结来说,org.apache.ibatis.logging.stdout.StdOutImpl是MyBatis中用于将日志信息打印到控制台的一种方式。如果你想将日志输出到文件而不是控制台,你可以检查你的logback-spring.xml配置文件中的相关配置项。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [springBoot 启动控制台一直卡住,且 org.apache.ibatis.logging.stdout.stdout.StdOutImpl](https://blog.csdn.net/weixin_51191538/article/details/126735756)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *3* [前端-后端java的Util类的工具类](https://download.csdn.net/download/jackhman/10026578)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值