当前位置:网站首页>解决: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
边栏推荐
- C language advanced pointer Full Version (array pointer, pointer array discrimination, function pointer)
- Typescript入门教程(B站黑马程序员)
- [C language] deeply analyze the underlying principle of data storage
- Mysql23 storage engine
- Csdn-nlp: difficulty level classification of blog posts based on skill tree and weak supervised learning (I)
- MySQL23-存储引擎
- Baidu Encyclopedia data crawling and content classification and recognition
- MySQL28-数据库的设计规范
- MySQL33-多版本并发控制
- MySQL storage engine
猜你喜欢

MySQL24-索引的数据结构

Moteur de stockage mysql23

MySQL22-逻辑架构

35 is not a stumbling block in the career of programmers

Navicat 导出表生成PDM文件
![[unity] simulate jelly effect (with collision) -- tutorial on using jellysprites plug-in](/img/1f/93a6c6150ec2b002f667a882569b7b.jpg)
[unity] simulate jelly effect (with collision) -- tutorial on using jellysprites plug-in

Adaptive Bezier curve network for real-time end-to-end text recognition

Opencv uses freetype to display Chinese

How to build an interface automation testing framework?

Nanny hand-in-hand teaches you to write Gobang in C language
随机推荐
Have you mastered the correct posture of golden three silver four job hopping?
第一篇博客
35 is not a stumbling block in the career of programmers
Software test engineer development planning route
What is the difference between TCP and UDP?
Mysql34 other database logs
++Implementation of I and i++
February 13, 2022-2-climbing stairs
Nanny hand-in-hand teaches you to write Gobang in C language
CSDN问答标签技能树(二) —— 效果优化
Mysql27 - Optimisation des index et des requêtes
Adaptive Bezier curve network for real-time end-to-end text recognition
[paper reading notes] - cryptographic analysis of short RSA secret exponents
API learning of OpenGL (2004) gl_ TEXTURE_ MIN_ FILTER GL_ TEXTURE_ MAG_ FILTER
Mysql26 use of performance analysis tools
Typescript入门教程(B站黑马程序员)
MySQL learning diary (II)
MySQL24-索引的数据结构
[reading notes] rewards efficient and privacy preserving federated deep learning
First blog