Does anyone know how I can bundle my log4j.xml file when I build my project Jar and how I can load the file at run time? Thanks in advance.
您可以像在其他文件中一样将log4j.xml放在jar中,并根据Log4J的初始化规则进行加载。
确切地说,您应该将log4j.xml文件放入JAR文件中的默认软件包。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.