{"id":159461,"date":"2020-09-24T01:06:02","date_gmt":"2020-09-23T17:06:02","guid":{"rendered":"http:\/\/4563.org\/?p=159461"},"modified":"2020-09-25T00:05:49","modified_gmt":"2020-09-24T16:05:49","slug":"%e5%a6%82%e4%bd%95%e4%bc%98%e9%9b%85%e7%9a%84%e5%9c%a8-springboot-%e4%b8%ad%e6%89%93%e5%8d%b0-requestresponse-%e6%97%a5%e5%bf%97","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=159461","title":{"rendered":"\u5982\u4f55\u4f18\u96c5\u7684\u5728 SpringBoot \u4e2d\u6253\u5370 Request&amp;Response \u65e5\u5fd7"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5982\u4f55\u4f18\u96c5\u7684\u5728 SpringBoot \u4e2d\u6253\u5370 Request&amp;Response \u65e5\u5fd7               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : springmarker <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u672c\u6765\u60f3\u5199\u4e2a springboot-starter \u6765\u505a Request&amp;Response \u65e5\u5fd7\u6253\u5370\u7684\uff0c\u4f46\u662f\u53d1\u73b0\u901b\u4e86\u4e00\u5708\u8c37\u6b4c\uff0c\u53d1\u73b0\u57fa\u672c\u90fd\u662f\u7528\u62e6\u622a\u5668\u505a\u7684\u3002<\/p>\n<p> \u4f7f\u7528\u62e6\u622a\u5668\u505a\u672c\u8eab\u6ca1\u4ec0\u4e48\u95ee\u9898\uff0c\u4f46\u662f HttpServletRequest \u8bfb\u53d6\u8fc7\u4e00\u6b21\u540e\uff0cbody \u5c31\u4e0d\u80fd\u518d\u8bfb\u53d6\u4e86\uff0c\u89e3\u51b3\u529e\u6cd5\u5c31\u662f\u5728 Filter \u4e2d\u81ea\u5df1\u63d0\u524d\u5305\u88c5\u4e00\u4e2a\u53ef\u91cd\u590d\u8bfb\u7684 Request\uff0c\u4f46\u662f\u89c9\u5f97\u8fd9\u6837\u505a\u6709\u70b9\u9ebb\u70e6\u800c\u4e14\u4e0d\u90a3\u4e48\u4f18\u96c5\u3002<\/p>\n<p> \u8bf7\u6559\u4e00\u4e0b\u6709\u4ec0\u4e48\u4f18\u96c5\u7684\u529e\u6cd5\u5728 SpringBoot \u4e2d\u6253\u5370 Request&amp;Response \u65e5\u5fd7\u5417\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>26<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3432299\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : MoHen9 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u7528 AOP \u6253\u5370\uff0c\u53c2\u8003\u4e00\u4e0b\u6211\u7684\u5b9e\u73b0\uff0chttps:\/\/github.com\/benefitj\/springboot-doughnut\/blob\/master\/aop\/src\/main\/java\/com\/benefitj\/spring\/aop\/WebRequestAspect.java                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432300\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Kyle18Tang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/github.com\/zalando\/logbook\uff0c\u6211\u4eec\u5df2\u7ecf\u7528\u4e86\uff0c\u53ef\u4ee5\u5404\u79cd\u81ea\u5b9a\u4e49\uff0c\u975e\u5e38\u9002\u5408\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432301\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : springmarker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @MoHen9 #1 AOP \u65e9\u5c31\u8bd5\u8fc7\u4e86\uff0c\u4f46\u662f ctrl \u5c42\u4f20\u5165\u4f20\u51fa\u90fd\u662f\u5bf9\u8c61\uff0c\u6253\u5370\u65e5\u5fd7\u8fd8\u5f97\u5e8f\u5217\u5316\u4e00\u4e0b\uff0c\u611f\u89c9\u6709\u70b9\u6d6a\u8d39<\/p>\n<p>@Kyle18Tang #2 \u8fd9\u4e2a\u5728 stackoverflow \u89c1\u8fc7\uff0c\u8fd8\u6ca1\u8bd5\u8fc7\uff0c\u60f3\u81ea\u5df1\u5199\u4e2a\u8f7b\u91cf\u7ea7\u7684                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432302\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : frankly123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \/**<br \/> * @author wangyiwen<br \/> * @version 1.0 Created in 2020\/7\/14 18:36<br \/> * \u8be5\u6ce8\u5165\u662f\u4e3a\u4e86\u53ef\u4ee5\u83b7\u53d6\u5230\u5305\u88c5\u8fc7\u7684 httpRequest<br \/> *\/<br \/>public class WrapperRequestFilter extends AbstractRequestLoggingFilter {<\/p>\n<p> \/**<br \/> * Concrete subclasses should implement this method to write a log message<br \/> * &lt;i&gt;before&lt;\/i&gt; the request is processed.<br \/> *<br \/> * @param request current HTTP request<br \/> * @param message the message to log<br \/> *\/<br \/> @Override<br \/> protected void beforeRequest(HttpServletRequest request, String message) {<br \/> \/\/do nothing<br \/> }<\/p>\n<p> \/**<br \/> * Concrete subclasses should implement this method to write a log message<br \/> * &lt;i&gt;after&lt;\/i&gt; the request is processed.<br \/> *<br \/> * @param request current HTTP request<br \/> * @param message the message to log<br \/> *\/<br \/> @Override<br \/> protected void afterRequest(HttpServletRequest request, String message) {<br \/> \/\/do nothing<br \/> }<br \/>}<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/> @Bean<br \/> public WrapperRequestFilter wrapperRequestFilter() {<br \/> WrapperRequestFilter wrapperRequestFilter = new WrapperRequestFilter();<br \/> wrapperRequestFilter.setIncludeQueryString(true);<br \/> wrapperRequestFilter.setIncludeClientInfo(true);<br \/> wrapperRequestFilter.setIncludeHeaders(true);<br \/> wrapperRequestFilter.setIncludePayload(true);<br \/> wrapperRequestFilter.setMaxPayloadLength(99999);<br \/> return wrapperRequestFilter;<br \/> }                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432303\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : frankly123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @frankly123 \u7136\u540e\u60f3\u5728\u54ea\u91cc\u8bfb\u5c31\u5728\u54ea\u91cc\u8bfb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432304\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : springmarker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @frankly123 #4 request \u7684 inputstream \u53ea\u80fd\u8bfb\u53d6\u4e00\u6b21                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432305\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hugedata <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8981\u4e48\u5c31\u5728\u6bcf\u4e2a\u65b9\u6cd5\u91cc\u624b\u52a8\u6253\uff0c\u8981\u4e48\u5c31\u8fc7\u6ee4\u5668\u3002<br \/>\u624b\u52a8\u6253\u6709\u4e2a\u597d\u5904\uff1a\u63d0\u9ad8\u4f60\u7684\u4ee3\u7801\u91cf\u4ece\u800c\u63d0\u9ad8\u7ee9\u6548\u8003\u6838\u7684\u5206\u6570\u3002\/doge                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432306\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : letitbesqzr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @springmarker #6 \u4f7f\u7528 org.springframework.web.util.ContentCachingRequestWrapper                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432307\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : springmarker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @letitbesqzr #8 \u8fd9\u4e2a\u7528\u8fc7\uff0c\u4ed6\u7684 InputStream \u4e5f\u662f\u53ea\u80fd\u8bfb\u53d6\u4e00\u6b21\uff0c\u5e94\u8be5\u662f contentBytes \u53ef\u4ee5\u8bfb\u53d6\u591a\u6b21\uff0c\u4f46\u662f\u591a\u6b21\u8bfb\u53d6 contentBytes \u7684\u524d\u63d0\u53c8\u662f\u9700\u8981\u5148\u505a\u8bfb\u53d6 InputStream \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432308\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : urzz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Spring MVC \u7684\u8bdd\uff0c\u611f\u89c9\u53ef\u4ee5\u8003\u8651\u4f7f\u7528 RequestBodyAdvice \u548c ResponseBodyAdvice \u6765\u5b9e\u73b0\uff0c\u4e4b\u524d\u505a\u53c2\u6570\u52a0\u89e3\u5bc6\u7684\u65f6\u5019\u7528\u8fc7\u8fd9\u4e2a\u3002<br \/>\u6253\u5370\u65e5\u5fd7\u4e0d\u60f3\u5e8f\u5217\u5316\u53ef\u4ee5\u5728 RequestBodyAdvice::beforeBodyRead \u4e2d\u505a\u5904\u7406\uff0c\u5904\u7406\u5b8c\u4e86\u4e4b\u540e\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684 inputMessage \u51fa\u6765\u7ee7\u7eed\u540e\u9762\u7684 convert \u5e94\u8be5\u5c31\u53ef\u4ee5\u3002<br \/>\u6ca1\u8bd5\u8fc7\uff0c\u611f\u89c9\u53ef\u4ee5\u5c1d\u8bd5\u4e00\u4e0b\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432309\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : springmarker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @urzz #10 \u8fd9\u4e2a\u6211\u4e5f\u8bd5\u8fc7\uff0c\u597d\u50cf\u4e0d\u652f\u6301 Form \u8868\u5355 <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/9kZ3y873-39.png\" alt=\"\u5982\u4f55\u4f18\u96c5\u7684\u5728 SpringBoot \u4e2d\u6253\u5370 Request&amp;amp;Response \u65e5\u5fd7\"> <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432310\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : frankly123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @springmarker \u770b\u6211\u4ee3\u7801\uff0cspring \u5e2e\u4f60 wrapper \u8fc7\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432311\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : CoderGeek <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7b80\u6d01 \u62bd\u8c61\u7c7b\u7a0b\u5e8f\u5165\u53e3 befor \u6253\u5370 request -&gt; \u4f60\u7684\u5404\u79cd\u903b\u8f91 -&gt; after \u6253\u5370 response \u6253\u5370 \u5bf9\u8c61\u90fd\u5199 toString \u5c11\u7528 json                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432312\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xuanbg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6700\u597d\u662f\u7f51\u5173\u4e0a\u5199 Filter \u6253\u5370\uff0c\u5176\u6b21\u662f\u5404\u670d\u52a1 AOP \u6253\u5370\u3002\u53ef\u4ee5\u770b\uff1a https:\/\/github.com\/xuanbg\/gateway                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432313\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : changdy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6253\u5370\u8bf7\u6c42\u65e5\u5fd7 \u53ef\u4ee5\u4f7f\u7528 CommonsRequestLoggingFilter \u6216\u8005\u8c03\u6574 org.apache.coyote.http11.Http11InputBuffer \u7ea7\u522b . \u4e0d\u8fc7\u6700\u5408\u9002\u7684 <br \/>\u6253\u5370 Response \u6211\u4e5f\u6ca1\u627e\u5230\u5f88\u597d\u7684\u529e\u6cd5 \u7f51\u4e0a\u627e\u5230\u4e00\u4e9b\u90fd\u662f\u83b7\u53d6\u7684 pojo \u7c7b . \u63d2\u773c\u540c\u8e72.<br \/>ps \u8fd9\u79cd\u65e5\u5fd7\u662f\u4e0d\u662f\u5728\u4e0a\u5c42\u8bb0\u5f55\u66f4\u5408\u9002?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432314\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cs419 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u60f3\u8981\u5bf9 req \u6253\u5370\u65e5\u5fd7 \u6253\u5370\u7684\u4fe1\u606f\u81ea\u7136\u662f\u8981\u5305\u542b\u6240\u6709\u8bf7\u6c42\u6570\u636e<br \/>\u56e0\u6b64\u9700\u8981\u8bfb\u53d6 inputstream <br \/>\u90a3\u95ee\u9898\u53d8\u6210\u4e86 inputstream \u80fd\u91cd\u590d\u8bfb\u53d6\u5417<br \/>\u770b\u4e0b\u63a5\u53e3\u8bbe\u8ba1 \u9ed8\u8ba4\u662f\u4e0d\u652f\u6301 \u4f46\u5b9e\u73b0\u7c7b\u53ef\u4ee5\u8c03\u4e3a\u652f\u6301\u91cd\u590d\u8bfb <br \/>\u4e00\u822c servlet inputstream \u4e0d\u652f\u6301\u91cd\u590d\u8bfb \u60f3\u8981\u652f\u6301\u5c31\u9700\u8981\u81ea\u5df1\u5907\u4efd <\/p>\n<p>\u89c9\u7740\u81ea\u5df1\u53bb\u5907\u4efd\u4e0d\u4f18\u96c5 \u65e0\u975e\u662f\u89c9\u7740\u4eb2\u81ea\u7ed9\u670d\u52a1\u6dfb\u52a0\u4e86\u4e2a\u6d88\u8017\u6027\u80fd\u7684\u4e1c\u897f\u662f\u810f\u6d3b <br \/>\u6700\u597d tomcat \u4e2d\u6709\u4e2a\u5f00\u5173\uff0c\u914d\u7f6e\u4e0b\uff0c\u5c31\u652f\u6301\u91cd\u590d\u8bfb\u4e86\uff0c\u8fd9\u5fc3\u91cc\u5c31\u597d\u53d7\u4e86<br \/>\u810f\u6d3b\u603b\u5f97\u6709\u4eba\u5e72 \u8bf4\u767d\u4e86\u541b\u5b50\u8fdc\u5e96\u53a8 \u773c\u4e0d\u89c1\u4e3a\u51c0                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432315\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tanrenye <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7684\u7ecf\u9a8c\u662f\u7528 filter\uff0c\u7528 AOP \u4f1a\u6709\u5f88\u591a\u7279\u5b9a\u60c5\u5883\u65e0\u6cd5\u8fdb\u5165\uff0c\u65e5\u5fd7\u4e22\u5931\uff0c\u4f8b\u5982\u53c2\u6570\u4e0d\u5339\u914d\u4e4b\u7c7b\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432316\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : springmarker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @frankly123 #12 \u8fd9\u4e2a\u770b\u4e86\u4e00\u4e0b\u8fd8\u662f\u7531\u62bd\u8c61\u7c7b\u5c01\u88c5\u4e3a ContentCachingRequestWrapper \u7684\uff0c\u8fd9\u4e2a\u7c7b\u8bfb\u53d6 InputStream \u4e5f\u662f\u53ea\u80fd\u8bfb\u53d6\u4e00\u6b21\uff0c\u8bfb\u53d6 ContentBytes \u6709\u6570\u636e\u7684\u524d\u63d0\u4e5f\u5f97\u662f\u5148\u8bfb\u53d6 InputStream \u3002<\/p>\n<p>@changdy #15 \u6253\u65e5\u5fd7\u5c31\u662f\u4e3a\u4e86\u65b9\u4fbf\u4e00\u6761\u9f99\u67e5\u770b\uff0c\u800c\u4e14\u5f88\u591a\u670d\u52a1\u90fd\u662f\u5185\u90e8\u670d\u52a1\uff0c\u6ca1\u6709\u7f51\u5173\u3002<\/p>\n<p>@tanrenye #17 \u7528 filter \u7684\u95ee\u9898\u5c31\u662f Body \u53ea\u80fd\u8bfb\u53d6\u4e00\u6b21                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432317\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aguesuka <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u8981\u5728 spring \u8fd9\u4e00\u5c42\u505a\uff0c\u8981\u5728\u7f51\u5173\u505a\uff0c\u4eca\u5929\u8bb0 requestBody \u660e\u5929\u5c31\u60f3\u8bb0 url header\uff0c\u540e\u5929\u5c31\u60f3\u8bb0 tcp packet \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432318\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : springmarker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @aguesuka #19 \u5185\u90e8\u670d\u52a1\u4e4b\u95f4\u90fd\u662f\u76f4\u8fde\u7684\uff0c\u57fa\u672c\u6728\u5f97 gateway                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432319\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tiankongzhe <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u54e5\uff0cspringboot \u90fd\u6709\u8fd9\u4e2a\u529f\u80fd\u7684\u63d0\u4f9b\u7684\uff0c\u53ea\u9700\u8981\u914d\u7f6e\u7684\u5f00\u5173\u6253\u5f00\u5c31\u597d\u4e86<br \/>spring.http.log-request-details=true                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432320\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : springmarker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @tiankongzhe #21 \u8fd9\u4e2a\u5df2\u7ecf\u8fc7\u65f6\u4e86\uff0c\u800c\u4e14\u5728 2.3.4 \u4e0a\u6ca1\u6709\u751f\u6548                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432321\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tiankongzhe <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             spring boot 2.1<br \/>logging.level.org.springframework.web=DEBUG<br \/>spring.http.log-request-details=true<\/p>\n<p>spring boot 2.2<br \/>logging.level.org.springframework.web=DEBUG<br \/>spring.mvc.log-request-details=true<\/p>\n<p>\u914d\u7f6e\u4e0a\u5c31\u597d\u4e86\uff0c\u8bf7\u6c42\u65e5\u5fd7\u5c31\u6709\u4e86                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432322\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tiankongzhe <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             2.3 \u7684\u5b98\u7f51\u627e\u4e0b\u5427\uff0c\u5e94\u8be5\u6709\u8fd9\u4e2a\u914d\u7f6e\u7684\uff0c\u4e4b\u524d\u7684\u7248\u672c\u6211\u662f\u5728\u5b98\u7f51 doc \u4e0a\u770b\u5230\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432323\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : springmarker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @tiankongzhe #23 <br \/>\u8fd9\u4e2a\u662f\u6ca1\u6709 Body \u7684\uff0c\u65e9\u5c31\u8bd5\u8fc7\u4e86\u3002<br \/>\u7b80\u7565\u5199\u6cd5\uff1alogging.level.web=debug                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3432324\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tiankongzhe <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @springmarker \u5c1d\u8bd5\u7528 javassist \u5427\uff0c\u8fd9\u5230\u8bf7\u6c42\u7684\u603b\u5165\u53e3\uff0c\u52a0\u5165 agent\uff0c\u8fd9\u6837\u6bd4 filter \u548c aop \u90fd\u8981\u7b80\u5355\uff0c\u6027\u80fd\u4e5f\u9ad8                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u4f18\u96c5\u7684\u5728 SpringBoot&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/159461"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=159461"}],"version-history":[{"count":1,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/159461\/revisions"}],"predecessor-version":[{"id":159463,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/159461\/revisions\/159463"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=159461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=159461"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=159461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}