//能容主流容器中获得容器运行地址方法
this.getClass().getClassLoader().getResource("/").getPath()
.substring(1).replace("WEB-INF\\\\classes\\\\", "").replace("WEB-INF/classes/", "");
在容器中获得容器路径的方法
最新推荐文章于 2024-05-30 10:51:27 发布
//能容主流容器中获得容器运行地址方法
this.getClass().getClassLoader().getResource("/").getPath()
.substring(1).replace("WEB-INF\\\\classes\\\\", "").replace("WEB-INF/classes/", "");