nizuimeiabc1

在jsp页面中:

<%

String path = application.getRealPath("").replace("\\","\\\\");

%>

在java代码中:

String path = request.getServletContext().getRealPath("").replace("\\","\\\\");

分类:

技术点:

相关文章:

  • 2022-02-07
  • 2021-12-28
  • 2021-11-19
  • 2022-12-23
  • 2021-11-18
  • 2021-07-14
  • 2021-12-19
猜你喜欢
  • 2021-11-18
  • 2021-08-12
  • 2021-09-18
  • 2022-12-23
  • 2021-05-17
  • 2021-08-29
  • 2022-12-23
相关资源
相似解决方案