项目目录结构:

  浏览器地址栏输入localhost:8070/testPath.html   ---------访问的是WebRoot目录下的html文件。

  浏览器地址栏输入localhost:8070/static/testPath.html  ---- 即WebRoot子文件夹static下的html。

  浏览器地址栏输入localhost:8070/WEB-INF/testPath.html    ----页面不存在,客户端不可直接访问web-inf下的文件

相关文章:

  • 2021-06-26
  • 2021-07-10
  • 2021-06-06
  • 2021-05-30
  • 2022-01-14
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2021-12-22
  • 2021-09-23
  • 2021-08-14
  • 2021-08-19
  • 2021-04-19
  • 2021-08-05
  • 2021-09-25
相关资源
相似解决方案