当前位置:网站首页>解决: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
边栏推荐
- February 13, 2022 - Maximum subarray and
- MySQL21-用戶與權限管理
- [Li Kou 387] the first unique character in the string
- Pytoch LSTM implementation process (visual version)
- A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
- MySQL23-存储引擎
- [paper reading notes] - cryptographic analysis of short RSA secret exponents
- Anaconda3 安装cv2
- 保姆级手把手教你用C语言写三子棋
- Mysql32 lock
猜你喜欢
C language advanced pointer Full Version (array pointer, pointer array discrimination, function pointer)
API learning of OpenGL (2002) smooth flat of glsl
MySQL combat optimization expert 02 in order to execute SQL statements, do you know what kind of architectural design MySQL uses?
该不会还有人不懂用C语言写扫雷游戏吧
Mysql22 logical architecture
MySQL27-索引優化與查詢優化
[C language] deeply analyze the underlying principle of data storage
How to build an interface automation testing framework?
MySQL28-数据库的设计规范
Mysql26 use of performance analysis tools
随机推荐
CSDN question and answer module Title Recommendation task (II) -- effect optimization
Chrome浏览器端跨域不能访问问题处理办法
在jupyter NoteBook使用Pytorch进行MNIST实现
MySQL36-数据库备份与恢复
MySQL learning diary (II)
Time in TCP state_ The role of wait?
Mysql22 logical architecture
Database middleware_ MYCAT summary
C语言标准的发展
How to change php INI file supports PDO abstraction layer
Global and Chinese market of thermal mixers 2022-2028: Research Report on technology, participants, trends, market size and share
Mysql28 database design specification
MNIST implementation using pytoch in jupyter notebook
Complete web login process through filter
pytorch的Dataset的使用
MySQL22-逻辑架构
CSDN问答标签技能树(五) —— 云原生技能树
MySQL31-MySQL事务日志
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
MySQL19-Linux下MySQL的安装与使用