IDEA如何将普通java项目变为web项目

2025-05-18 18:28:26
推荐回答(1个)
回答1:

123456 PropertyConfigurator.configure("E:/study/log4j/log4j.properties"); //DOMConfigurator.configure("E:/study/log4j/log4j.xml");//加载.xml文件 //从项目目录开始读 PropertyConfigurator.configure("log4j/log4j.properties"); //DOMConfigurator.configure("log4j/log4j.xml");//加载.xml文件