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
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001269s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.095209s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.000965s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001094s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.000981s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.002956s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000811s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003616s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.016712s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.000977s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 48101 [ RunTime:0.015059s ]