如果您打开这个项目文件,您将看到LinkPathVariable已经被使用,从而代替了这个实际的物理路径,如图9所示。
If you open the.project file, you will see that the Link path Variable is used instead of the actual physical path, as shown in Figure 9.
为了进一步强调文件的物理位置,可以在根资源名字的旁边显示资源的工作区路径
To further emphasize the physical location of the file, it is possible to display the workspace path of the resource next to the root resource's name
显然,对于磁盘上的物理文件和用来访问页面功能的URL而言,URL路径选择特性隔离了两者之间的关联关系。
The URL routing feature explicitly breaks the connection between physical files on disk and the URL that is used to access a given bit of functionality.
MVC框架使用另一种不同的方式将URL路径直接映射到服务器端的代码,也就是将URL直接映射到类而不是映射到物理文件。
MVC frameworks typically map URLs to server code in a different way. Instead of mapping URLs to template files on disk, they instead map URLs directly to classes.
给每个文件一个独特的物理路径。
给每个文件一个独特的物理路径。
应用推荐