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.001053s ]
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.074709s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001129s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001242s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001146s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003488s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.001150s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.006032s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.034575s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.005929s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 48101 [ RunTime:0.017083s ]