当前位置:网站首页>解决:log4j:WARN Please initialize the log4j system properly.
解决:log4j:WARN Please initialize the log4j system properly.
2022-07-06 09:12:00 【程序员柒七】
背景:
springboot+maven+mybatis项目,报错如下:
解决方法:
在resources目录下新建文件log4j.properties,添加以下代码:
log4j.rootLogger=WARN, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
相关截图如下:
原文链接:https://blog.csdn.net/lezeqe/article/details/103805338
边栏推荐
- CSDN question and answer tag skill tree (II) -- effect optimization
- Emotional classification of 1.6 million comments on LSTM based on pytoch
- Use of dataset of pytorch
- Const decorated member function problem
- [paper reading notes] - cryptographic analysis of short RSA secret exponents
- Just remember Balabala
- Implement sending post request with form data parameter
- Google login prompt error code 12501
- Global and Chinese markets of static transfer switches (STS) 2022-2028: Research Report on technology, participants, trends, market size and share
- Anaconda3 安装cv2
猜你喜欢
Valentine's Day is coming, are you still worried about eating dog food? Teach you to make a confession wall hand in hand. Express your love to the person you want
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd0 in position 0成功解决
Mysql28 database design specification
Isn't there anyone who doesn't know how to write mine sweeping games in C language
In fact, the implementation of current limiting is not complicated
Navicat 导出表生成PDM文件
MySQL36-数据库备份与恢复
该不会还有人不懂用C语言写扫雷游戏吧
CSDN问答标签技能树(五) —— 云原生技能树
Ueeditor internationalization configuration, supporting Chinese and English switching
随机推荐
Global and Chinese markets of static transfer switches (STS) 2022-2028: Research Report on technology, participants, trends, market size and share
How to build an interface automation testing framework?
Ueeditor internationalization configuration, supporting Chinese and English switching
Baidu Encyclopedia data crawling and content classification and recognition
基于Pytorch肺部感染识别案例(采用ResNet网络结构)
[C language] deeply analyze the underlying principle of data storage
MySQL20-MySQL的数据目录
CSDN question and answer tag skill tree (II) -- effect optimization
C语言标准的发展
Anaconda3 安装cv2
Super detailed steps for pushing wechat official account H5 messages
CSDN-NLP:基于技能树和弱监督学习的博文难度等级分类 (一)
MySQL21-用户与权限管理
MySQL23-存儲引擎
35 is not a stumbling block in the career of programmers
C language string function summary
Not registered via @EnableConfigurationProperties, marked(@ConfigurationProperties的使用)
How to change php INI file supports PDO abstraction layer
Win10: how to modify the priority of dual network cards?
@controller,@service,@repository,@component区别