log4j.properties文件自動加載

今天看代碼,發現log4j.properties。沒有相應的加載代碼,但它卻生效了,這多神奇!html   看進去,org.apache.log4j, LogManager.java,其有一個static方法塊:java static { // By default we use a DefaultRepositorySelector which always returns 'h'.
相關文章
相關標籤/搜索