Routes 播放框架-未找到现有路由的错误

Routes 播放框架-未找到现有路由的错误,routes,playframework,Routes,Playframework,我正在使用application.conf中的http.path属性从不同的路径为play应用程序提供服务。所以在applicationconf中,我有 http.path=/sales/ 当我尝试访问时,出现以下错误 Not found GET /sales/ These routes have been tried, in this order : 1. GET /@documentation/cheatsheet/{category} Pla

我正在使用application.conf中的http.path属性从不同的路径为play应用程序提供服务。所以在applicationconf中,我有

http.path=/sales/

当我尝试访问时,出现以下错误

Not found GET /sales/ These routes have been tried, in this order : 1. GET /@documentation/cheatsheet/{category} PlayDocumentation.cheatSheet 2. GET /@documentation/modules/{module}/files/{name} PlayDocumentation.file 3. GET /@documentation/modules/{module}/images/{name} PlayDocumentation.image 4. GET /@documentation/modules/{module}/{id} PlayDocumentation.page 5. GET /@documentation/files/{name} PlayDocumentation.file 6. GET /@documentation/images/{name} PlayDocumentation.image 7. GET /@documentation/{id} PlayDocumentation.page 8. GET /@documentation/? PlayDocumentation.index 9. * /sales/ Application.index 10. GET /sales/login Secure.login 11. POST /sales/login Secure.authenticate 12. GET /sales/logout Secure.logout 找不到 获取/销售/ 已按以下顺序尝试了这些路线: 1.GET/@documentation/cheatsheet/{category}PlayDocumentation.cheatsheet 2.获取/@documentation/modules/{module}/files/{name}PlayDocumentation.file 3.GET/@documentation/modules/{module}/images/{name}PlayDocumentation.image 4.GET/@documentation/modules/{module}/{id}PlayDocumentation.page 5.获取/@documentation/files/{name}PlayDocumentation.file 6.GET/@documentation/images/{name}PlayDocumentation.image 7.获取/@documentation/{id}PlayDocumentation.page 8.获取/@documentation/?PlayDocumentation.index 9. * /销售/应用程序索引 10GET/sales/login Secure.login 11POST/sales/login-Secure.authenticate 12获取/销售/注销安全。注销 注意:在我的路线文件中,我没有在路线前加上“/sales”。它会自动添加到每条管线中

我不确定为什么“/sales/”路线未被识别。如果我给出路线“/sales/login”或任何其他路线,它都可以工作

其他信息:在安全模块中,我在两个地方进行了更改,将默认URL设置为“/sales/”而不是“/”

变化是

flash.put(“url”、play.play.configuration.get(“http.path”)


url=String.valueOf(play.play.configuration.get(“http.path”)

从http.path设置中删除尾部斜杠

http.path=/sales

谢谢帮助很大。特别是在文档中,斜杠是。。。