首页 新闻 会员 周边
1
回答数

回答被采纳 10 获取java web 根路径(webContent) 报错,求大神帮忙

String t=Thread.currentThread().getContextClassLoader().getResource("").getPath(); System.out.printl