Playframework:http.path已设置,但可以';无法定位到主页
我已经在application.conf中设置了主路径:Playframework:http.path已设置,但可以';无法定位到主页,playframework,playframework-1.x,Playframework,Playframework 1.x,我已经在application.conf中设置了主路径: http.path=/vcloud/ 但现在我无法访问http://localhost:9000/vcloud/,我以为这个路径应该指向我的主页,但现在它是一个404错误页面 以下是我的路线: # Routes # This file defines all application routes (Higher priority routes first) # ~~~~ # Home page GET /
http.path=/vcloud/
但现在我无法访问http://localhost:9000/vcloud/
,我以为这个路径应该指向我的主页,但现在它是一个404错误页面
以下是我的路线:
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
# Home page
GET / Application.index
# Ignore favicon requests
GET /favicon.ico 404
# Map static resources from the /app/public folder to the /public path
GET /public/ staticDir:public
# Catch all
* /{controller}/{action} {controller}.{action}
我使用的是Play1.x如果您使用的是Play2.0.x,它需要是application.context,如下所述
如果您使用的是Play 2.0.x,则它必须是application.context,如下所述
如果删除最后一个斜杠,它应该可以正常工作
http.path=/vcloud
如果删除最后一个斜杠,它应该可以正常工作
http.path=/vcloud
它应该会起作用。在修改application.conf后是否重新启动了服务器?它应该可以工作。修改application.conf后是否重新启动服务器?