No log4j2 configuration file found. Using default configuration: logging only errors to the console

前端 未结 15 1119
情深已故
情深已故 2020-12-04 22:59
$ java -Dlog4j.configuration=file:///path/to/your/log4j2.xml -jar /path/to/your/jar_file.jar

Written to the console, you get

ERROR          


        
15条回答
  •  旧巷少年郎
    2020-12-04 23:40

    Just try below steps, it will work,

    1. Keep XML file directly under below folder structure. src/main/java
    2. Make sure to save the pom.xml file in case any changes made..

提交回复
热议问题