开发者社区> 问答> 正文

路由配置configRoute出问题了-服务报错

"
me.add("/", CommonController.class);
me.add("/filemanage", FileManage.class);

me.add("/fileupload", FileUpload.class);

路由这样配置的,但是输入localhost/filemanage的时候,filemanage被当作参数传到CommonController 的index方法了,这个怎么解决?

JFinal action report -------- 2014-01-18 20:38:09 ------------------------------
Controller : com.zuo.common.CommonController.(CommonController.java:1)
Method : index
UrlPara : filemanage
--------------------------------------------------------------------------------

"

展开
收起
montos 2020-05-31 11:42:51 474 0
1 条回答
写回答
取消 提交回答
  • "自己解决了 <img src=""http://www.oschina.net/js/ke/plugins/emoticons/images/10.gif"" alt="""" />原来 <span style=""font-family:微软雅黑, Verdana, sans-serif, 宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;"">FileManage里面少了index方法<img src=""http://www.oschina.net/js/ke/plugins/emoticons/images/49.gif"" alt="""" />######<span style=""font-family:微软雅黑, Verdana, sans-serif, 宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;"">me.add("/filemanage", FileManage.class, "/"); ######哈哈,不好意思没看清的的问题######还是一样没用啊"

    2020-05-31 11:43:00
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载