java web 技术内幕 读书笔记二

public class Test {
    public Test(){
        this.getClass().getClassLoader().getResource("").toString();
    }
    public static void main(String[] args) {
        Test test = new Test();
        System.out.println("args = [" + test.getClass().getClassLoader().getResource("").toString() + "]");
    }
}

猜你喜欢

转载自wangqiaowqo.iteye.com/blog/2202940