window系统与linux系统关于文件路径的问题
1 window与linux系统中 / \ 正反斜杠的问题
在Unix/Linux中,路径的分隔采用正斜杠”/”,比如”/home/hutaow”;
而在Windows中,路径分隔采用反斜杠”\”,比如”C:\Windows\System”。 但是用正斜杠也不影响例如“C:/Windows/System” 照样能正常解析文件路径
2 window与linux系统中 ////与/
windows和linux都是支持这样的
http://localhost:8080/webapp/////admin
http://localhost:8080/webapp/admin
http:\\localhost:8080\webapp\\\\admin
http:\\localhost:8080\webapp\admin
以上两种写法系统都能正常解析文件路径