Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于入口函数注解的建议 #331

Closed
superhanliu opened this issue Sep 21, 2012 · 1 comment
Closed

关于入口函数注解的建议 #331

superhanliu opened this issue Sep 21, 2012 · 1 comment

Comments

@superhanliu
Copy link
Contributor

现在nutz中入口类、方法的注解@at("/xxx") 需要是这样的格式,集必须带一个斜杠/。是否可以考虑这个斜杠不用写? 我看spring mvc3里面 @RequestMapping("basicData") 里,是否带斜杠都没关系。

实际上,不带斜杠有个好处,就是url可以是/a/b/c的格式,也可以是a.b.c这样的格式,更灵活。甚至我所有的请求都是nutz.do?action=a.b.c(当然这种方式我需要自己实现 一点url Mapping 初始化的代码)。

这个仅为建议,呵呵

@zozoh
Copy link
Member

zozoh commented Nov 20, 2012

木有看出增加这个灵活性,除了了让代码有机会变得更加难读一些,还会给程序员带来什么实惠

@zozoh zozoh closed this as completed Nov 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants