springboot+druid报错log4j:WARN No appenders could be found for logger (druid.sql.Connection). log4j:WARN Please initialize the log4j system properly.
2024-10-19 07:05:09
解决方案:新建文件log4j.properties
log4j.rootLogger=DEBUG, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
效果图:
最新文章
- 【WP 8.1开发】如何处理摄像头翻转的问题
- RESTClient使用
- C语言 链表的使用(链表的增删查改,链表逆转,链表排序)
- Intent官方教程(1)简介和作用
- nginx启动过程分析
- shodan
- 如何让HTML在手机上实现直接拨打电话以及发送短信?
- MongoDB学习2
- sqlmap基础使用
- Python使用ctypes访问C代码
- Linux 下搭建www服务器
- MyBatis学习笔记1--初识MyBatis
- Python3源码学习-requests
- JDBC四种驱动程序
- PHP数学常用函数
- js try catch 的使用,容错处理
- __new__() 与__init__()的区别
- pselect 函数
- 20155331 《网络对抗》 Exp6 信息搜集与漏洞扫描
- C语言函数参数传递