log4j.properties文件 定位
倘若log4j.properties文件不放在src目录下,估计要指定位置啦。
项目在Listener.init()方法中写到(如下),估计是用来定位的。
try { String resource = "/log4j.properties"; Properties prop = new Properties(); prop.load(this.getClass().getResourceAsStream(resource)); PropertyConfigurator.configure(prop); } catch (Exception ex) { ex.printStackTrace(); }
//import java.util.Properties;
//import org.apache.log4j.PropertyConfigurator;
相关推荐
MrLiar 2020-06-04
chw0 2020-11-04
大唐帝国前营 2020-08-18
sdaq 2020-07-26
MrLiar 2020-07-07
sdaq 2020-06-16
CXC0 2020-06-14
丨Fanny丨Cri 2020-06-13
CXC0 2020-06-08
dongxurr 2020-06-07
sdaq 2020-06-06
丨Fanny丨Cri 2020-06-03
MrLiar 2020-05-25
丨Fanny丨Cri 2020-05-17
MrLiar 2020-05-14
MrLiar 2020-05-12
sdaq 2020-05-11