当前位置:网站首页>解决: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
边栏推荐
- Unicode decodeerror: 'UTF-8' codec can't decode byte 0xd0 in position 0 successfully resolved
- Pytorch LSTM实现流程(可视化版本)
- npm一个错误 npm ERR code ENOENT npm ERR syscall open
- [leectode 2022.2.13] maximum number of "balloons"
- 【C语言】深度剖析数据存储的底层原理
- pytorch的Dataset的使用
- Adaptive Bezier curve network for real-time end-to-end text recognition
- What is the current situation of the game industry in the Internet world?
- Installation and use of MySQL under MySQL 19 Linux
- Mysql21 - gestion des utilisateurs et des droits
猜你喜欢
Water and rain condition monitoring reservoir water and rain condition online monitoring
ZABBIX introduction and installation
MySQL19-Linux下MySQL的安装与使用
CSDN question and answer module Title Recommendation task (II) -- effect optimization
MySQL30-事务基础知识
MySQL28-数据库的设计规范
Mysql32 lock
Adaptive Bezier curve network for real-time end-to-end text recognition
Mysql27 index optimization and query optimization
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
随机推荐
Breadth first search rotten orange
MySQL storage engine
Just remember Balabala
Chrome浏览器端跨域不能访问问题处理办法
百度百科数据爬取及内容分类识别
MySQL26-性能分析工具的使用
Unicode decodeerror: 'UTF-8' codec can't decode byte 0xd0 in position 0 successfully resolved
++Implementation of I and i++
Transactions have four characteristics?
Kubernetes - problems and Solutions
Texttext data enhancement method data argument
MySQL25-索引的创建与设计原则
@controller,@service,@repository,@component区别
UEditor国际化配置,支持中英文切换
How to find the number of daffodils with simple and rough methods in C language
Pytorch LSTM实现流程(可视化版本)
Software test engineer development planning route
CSDN博文摘要(一) —— 一个简单的初版实现
Introduction tutorial of typescript (dark horse programmer of station B)
Windchill configure remote Oracle database connection