- 在class获取路径的方法,getResource有没有“”的区别
System.out.println("" + this.getClass().getResource("").getPath()); video/software/JavaWorkspace/java_web_test/out/artifacts/java_web_test_war_exploded/WEB-INF/classes/cn/xx/dao/ System.out.println("" + this.getClass().getResource("/").getPath()); video/software/JavaWorkspace/java_web_test/out/artifacts/java_web_test_war_exploded/WEB-INF/classes/