我正在使用play framework 2.0.4,
我注意到在项目文件夹中,如果我使用play start,服务器的响应速度比服务器启动时快play run.但是,用户无法访问public使用start命令启动的服务器下的文件夹 下的静态资源,所以我想知道start更改根目录的默认配置是什么,或者我需要更改最初定义为的路由:
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.at(path="/public", file)
HEAD /assets/*file controllers.Assets.at(path="/public", file)
Run Code Online (Sandbox Code Playgroud)