Ber*_* B. 6 java playframework playframework-2.0
我只是想跟随Play框架的ZenTasks教程(http://www.playframework.com/documentation/2.1.0/JavaGuide4).我似乎无法让登录页面工作.
我正在使用该play ~run命令运行此项目.导航到http://localhost:9000/login错误时是
Action not found For request 'GET /login'
These routes have been tried, in this order:
1 GET/controllers.Application.index()
2 GET/assets/$file<.+>controllers.Assets.at(path:String = "/public", file:String)`
Run Code Online (Sandbox Code Playgroud)
我的路线文件看起来像
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
# Home page
GET / controllers.Application.index()
# User athentication
GET /login controllers.Application.login()
POST /login controllers.Application.authenticate()
GET /logout controllers.Application.logout()
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.at(path="/public", file)
Run Code Online (Sandbox Code Playgroud)
并且Application.login,authenticate和logout函数都可以正确编译.我在这里错过了一些非常容易的东西,因为我不知道出了什么问题?
| 归档时间: |
|
| 查看次数: |
11030 次 |
| 最近记录: |