public class Test {
	public void run() {
		// TODO Auto-generated method stub
       System.out.println("测试========》");
       String s1=this.getClass().getResource("").getPath();
       String s2=this.getClass().getResource("/").getPath();
       System.out.println(s1);
       System.out.println(s2);
	}

	public static void main(String[] args) {
		new Test().run();
	}
}

 


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2021-05-23
  • 2022-12-23
  • 2021-11-23
  • 2021-12-20
  • 2021-12-01
猜你喜欢
  • 2021-07-10
  • 2022-02-13
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
  • 2021-09-13
相关资源
相似解决方案