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

前端 未结 15 1106
情深已故
情深已故 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:59

    i had same problem, but i noticed that i have no log4j2.xml in my project after reading on the net about this problem, so i copied the related code in a notepad and reverted the notepad file to xml and add to my project under the folder resources. it works for me.

    
    
    
    
      
    
    
    
    
      
    
    
    
    

提交回复
热议问题