我用Play!框架1.2.5
我有一个模块’businessmodel’.在conf / routes中:
GET / businessmodel.Admin.index
我有控制器:
package controllers.businessmodel;
import play.mvc.Controller;
public class Admin extends Controller { ...
和一个观点:
/view/businessmodel/Admin/index.html
在依赖于此模块的主应用程序中,在conf / routes中我有:
GET /admin module:businessmodel
当转到myhost:9000 / admin我在页面上有错误:
Not found
GET /admin
此外,在同一个错误页面上,我有已定义路由的列表:
GET / Application.index
GET /admin/ businessmodel.Admin.index
GET /favicon.ico 404
GET /public/ staticDir:public
* /{controller}/{action} {controller}.{action} {controller}.{action}
–
但是如果将模块的路由更改为此行(添加’?’):
GET /? businessmodel.Admin.index
然后我们有不同的错误:
@6cpelo7bh Internal Server Error (500) for request GET /admin
Action not found Action businessmodel.Admin.index could not be found.
Error raised is MODULE$
我想错过一些定义吗?