这是我的代码:
1. 应用程序只做一些日志工作。
public class Application extends CRUD {
}
2. User是我要编辑的模型,所以我有一个Users作为Controller:
public class Users extends Application {
}
3.路线:
# 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
# Import CRUD routes
* /admin module:crud
# Catch all
* /{controller}/{action} {controller}.{action}
然后我跟着localhost:9000/admin
,它显示 404 找不到页面:
These routes have been tried, in this order :
GET /@documentation/cheatsheet/{category} PlayDocumentation.cheatSheet
GET /@documentation/modules/{module}/files/{name} PlayDocumentation.file
GET /@documentation/modules/{module}/images/{name} PlayDocumentation.image
GET /@documentation/modules/{module}/{id} PlayDocumentation.page
GET /@documentation/files/{name} PlayDocumentation.file
GET /@documentation/images/{name} PlayDocumentation.image
GET /@documentation/{id} PlayDocumentation.page
GET /@documentation/? PlayDocumentation.index
GET / Application.index
GET /favicon.ico 404
GET /public/ staticDir:public
GET /admin/ CRUD.index
* /{controller}/{action} {controller}.{action}
然后我添加一个蛞蝓localhost:9000/admin/
:
原来访问被拒绝!
我该如何处理?