一个样本代码目录。
业务逻辑代码使用服务定位器避免目录查找代码变得混乱,因此它很容易理解。
Business logic code that USES a service locator avoids becoming cluttered with directory lookup code, and so is easier to understand.
对于根目录,只返回404状态代码是不够的,因为尽管目录返回404状态代码,但有可能在目录之下还有文件。
It isn't enough for the root of the directory to return a 404 status code, because it's possible for a directory to return a 404 but still serve out files underneath it.
应用推荐