web項目log日誌查看分析->流程理解
阿新 • • 發佈:2017-07-10
ont lan hand isp agg dispatch port dto web
1.DEBUG [2017-07-10 11:38:41,705][] org.springframework.web.servlet.DispatcherServlet:865 - DispatcherServlet with name ‘dispatcherServlet‘ processing POST request for [/profit/queryProfitAccountList]
註:spring mvc的的dispatcherservlet會日誌打印傳進來的每個請求的url和http方法,並日誌debug輸出打印
dispatcherservlet處理分發請求後,當然就要handlermapping查找controller的方法了,如下打印:2.DEBUG [2017-07-10 11:38:41,705][] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping:310 - Looking up handler method for path /profit/queryProfitAccountList
debug打印“Looking up handler method for path /profit/queryProfitAccountList
3.DEBUG [2017-07-10 11:38:41,705][] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping:317 - Returning handler method [public java.util.Map<java.lang.String, java.lang.Object> com.pingan.property.icore.pap.aggregation.profit.controller.ProfitController.queryProfitAccounts(com.pingan.property.icore.pap.aggregation.profit.dto.QueryProfitAccountReqDTO)]
handlermapping查找到url對應的controller和方法,並log打印出來controller類名和處理方法名,並打印出整個方法的形參和返回值
4.
DEBUG [2017-07-10 11:38:41,706][] org.springframework.beans.factory.support.AbstractBeanFactory:251 - Returning cached instance of singleton bean ‘profitController‘
web項目log日誌查看分析->流程理解