首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 带一些Rails功能JavaEE

带一些Rails功能JavaEE

  • 资源大小:9.87 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: java j2ee rails filter RoR

资 源 简 介

If you known rails, you must love its developer-friendly features such as params attribute in controller, the log of each request and so on. Now, this project is trying to bring these features to JavaEE as possible as it can. And there is one and only one rule: non-aggressive. Any apps can benefit from this project, regardless whether using any frameworks or not. Now there are two filters, bring two rails-like features: * RailsLikeParamsFilter - create params in the request which contains the request params * DebugFilter - log infos of each request to stdout You just need to config these filters in web.xml, nothing else. Let"s go... RailsLikeParamsFilter ### if the request param is something like this: ### foo[]=xxx&foo[]=yyy&... we automatically convert it to List, and

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.196406s