Paths in JavaSE are divided into absolute paths and relative paths:
- Relative path: project name/ (up to resource name)
- Absolute path: drive letter:/directory/file name
Paths in JavaEE are also divided into absolute paths and relative paths:
-
Relative path:
. Indicates the current file directory
.. Indicate the parent directory of the current file
name indicates the files in the current directory, which is equivalent / filename
/ can be ignored -
Absolute path:
http://ip address/project name/resource path