java play framework_java – playframework模块和路由

我用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$

我想错过一些定义吗?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值