ifeilong / feilong-spring

:gem:focus on spring
Apache License 2.0
4 stars 12 forks source link

HandlerMethodInfoExtractor 增加输出 controller 类和方法信息 #156

Closed venusdrogon closed 6 years ago

venusdrogon commented 6 years ago

14:28:16 INFO  (AbstractContextRefreshedHandlerMethodLogginEventListener.java:137) render() - handler method ,size:[13],info:
url                                                                method   header ClientCache 
------------------------------------------------------------------ -------- ------ ----------- 
/c{categoryCode}-{name}                                                                        
/c{categoryCode}/m{material}-c{color}-s{size}-k{kind}-s{style}.htm                             
/errors/404400                                                                                 
/errors/500                                                                                    
/exceptiontest                                                                                 
/index,/,/index.htm                                                GET                         
/item/{itemid}                                                     GET             5分钟         
/jsp/{category}/{page}                                             GET,POST                    
/jsp/{category}/{page}/{small}                                     GET,POST                    
/requestbodytest                                                                               
/{c1}-{c2}-{c3}-{c4}-{label1}-{label2}-{label3}.htm                                            
/{c1}-{c2}-{c3}-{c4}-{label}.htm                                                               
/{c1}-{c2}-{c3}-{c4}.htm

需要再加上

输出 controller 类信息

venusdrogon commented 6 years ago

效果


11:57:19 INFO  (AbstractContextRefreshedHandlerMethodLogginEventListener.java:105) render() - handler method ,size:[457],info:
url                                                        method header                          Controller                       Method                                       ClientCache NeedLogin 
---------------------------------------------------------- ------ ------------------------------- -------------------------------- -------------------------------------------- ----------- --------- 
/,/index.htm                                                                                      SecurityController               root                                                               
/access-denied.htm                                                                                SecurityController               denie                                                              
/brand/batchEditStoreBrand-import.xlsx                     POST                                   StoreBrandController             downloadBatchEditStoreBrandImportTemplate                          
/brand/batchNewStoreBrand-import.xlsx                      GET                                    StoreBrandController             downloadBatchStoreBrandImportTemplate                              
/brand/checkRanking.json                                   POST   X-Requested-With=XMLHttpRequest StoreBrandController             checkStoreBrandRanking                                             
/brand/edit.htm                                            GET                                    StoreBrandController             findById                                                           
/brand/findByCode.json                                     GET    X-Requested-With=XMLHttpRequest StoreBrandController             findByCode                                                         
/brand/findByName.json                                     GET    X-Requested-With=XMLHttpRequest StoreBrandController             findWeiStoreSubdomain                                              
/brand/open.htm                                            GET                                    StoreBrandController             openBrand                                                          
/brand/query.htm                                                                                  StoreBrandController             query