我创建了一个简单的播放应用程序。我计划在 Google App Engine 中托管该应用程序。我已经在我的本地机器上完成了应用程序的测试。我成功部署(没有任何部署错误)到谷歌云。
问题:部署到 Google 的云后,我的请求没有通过 Play 的路由文件处理。我需要一些建议
我正在使用 Play 1.2.5、gae 模块 1.6.0、appengine-java-sdk-1.7.5
这是我的路线文件:
# 路线
# 这个文件定义了所有的应用路由(优先级高的路由优先)
#~~~~
# 主页
#GET / 应用程序.index
# 将 /app/public 文件夹中的静态资源映射到 /public 路径
GET /v1/items com.github.mygrocery.controller.MyGroceryController.listItems()
POST /v1/items com.github.mygrocery.controller.MyGroceryController.createItem()
PUT /v1/items com.github.mygrocery.controller.MyGroceryController.updateItems()
删除 /v1/items com.github.mygrocery.controller.MyGroceryController.deleteItems()
GET /v1/items/{pId} com.github.mygrocery.controller.MyGroceryController.getItem
POST /v1/items/{pId} com.github.mygrocery.controller.MyGroceryController.unsupportedRequest
PUT /v1/items/{pId} com.github.mygrocery.controller.MyGroceryController.updateItem
删除 /v1/items/{pId} com.github.mygrocery.controller.MyGroceryController.deleteItem
获取 /v1/requirements com.github.mygrocery.controller.MyGroceryController.listRequirements()
POST /v1/requirements com.github.mygrocery.controller.MyGroceryController.createRequirement()
PUT /v1/requirements com.github.mygrocery.controller.MyGroceryController.updateRequirement()
删除 /v1/requirements com.github.mygrocery.controller.MyGroceryController.deleteRequirements()
# 抓住所有
获取/静态目录:公共
* /{controller}/{action} {controller}.{action}
如果您需要更多信息,请告诉我。