编程知识 cdmana.com

Java web path

JavaSE In the path

  • Relative paths
    Start with the project ( If it's a unit test, it's from the current module Start counting
  • Absolute path
    Disk character :/ Catalog / file name

Java Web Middle way

  • Relative paths
    . Indicates the directory where the current file is located
    … Represents the directory above the current file
    file name A file that represents the directory where the current file is located , amount to ./ file name ./ It can be omitted


  • Absolute path

Correct format :http://ip:port/ project name / Resource path

版权声明
本文为[osc_ woq2wvus]所创,转载请带上原文链接,感谢

Tags java web path
Scroll to Top