idea执行log4j2报错
1. idea执行时log4j2报错
![](https://img2020.cnblogs.com/blog/986761/202101/986761-20210112114149822-2125297246.png)
2. 修复方案,在启动时添加jvm参数
-Dlog4j.configurationFile=conf/log4j2.xml
![](https://img2020.cnblogs.com/blog/986761/202101/986761-20210112114039094-431386921.png)
![avatar](https://img2020.cnblogs.com/blog/986761/202101/986761-20210112114039094-431386921.png)