web项目log日志查看分析->流程理解

2021-06-28 00:05

阅读:457

标签:handle   nts   hand   work   ring   post   ppi   ret   odm   

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 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‘


流程理解,soscw.com" target="_blank">web项目log日志查看分析->流程理解

标签:handle   nts   hand   work   ring   post   ppi   ret   odm   

原文地址:http://www.cnblogs.com/panxuejun/p/7145095.html


评论


亲,登录后才可以留言!