{"id":93573,"date":"2020-04-09T14:12:33","date_gmt":"2020-04-09T06:12:33","guid":{"rendered":"http:\/\/4563.org\/?p=93573"},"modified":"2020-04-09T14:12:33","modified_gmt":"2020-04-09T06:12:33","slug":"spring-mvc-%e5%8f%82%e6%95%b0%e6%98%a0%e5%b0%84%e9%97%ae%e9%a2%98%e8%af%b7%e6%95%99","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=93573","title":{"rendered":"Spring MVC \u53c2\u6570\u6620\u5c04\u95ee\u9898\u8bf7\u6559"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Spring MVC \u53c2\u6570\u6620\u5c04\u95ee\u9898\u8bf7\u6559               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xzceprint <\/span>  <span><i><\/i> 19<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>@RestController public class TestController { @GetMapping(&#8220;\/&#8221;) public String test(String name, String sex) { return &#8220;name:&#8221; + name + &#8220;sex:&#8221; + sex; } }<\/p>\n<p>\u8bf7\u6559\u4e00\u4e0b\u5404\u4f4d\u8fd9\u79cd\u60c5\u51b5\u7684\u65f6\u5019\uff0cspringMVC \u662f\u5982\u4f55\u505a\u5230\u51c6\u786e\u7684\u5c06\u8bf7\u6c42\u4e2d\u7684 name \u548c sex \u6620\u5c04\u5230\u5bf9\u5e94\u7684\u4f4d\u7f6e\u3002\u56e0\u4e3a\u7f16\u8bd1\u540e\u5c31\u7b97\u662f\u901a\u8fc7\u53cd\u5c04\u4e5f\u662f\u62ff\u4e0d\u5230\u65b9\u6cd5\u7684\u53c2\u6570\u540d\u79f0\u554a\u3002\uff08 java8 \u6307\u5b9a\u7279\u6b8a\u7684\u7f16\u8bd1\u53c2\u6570\u4e0d\u7b97\uff09<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1153611\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kkkkkrua <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             debug \u8fdb\u53bb\u5c31\u4e00\u6e05\u4e8c\u695a\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1153612\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : waa <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ParameterNameDiscoverer                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1153613\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : imzhoukunqiang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1153614\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cshijiel <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u666e\u901a\u53cd\u5c04\u62ff\u4e0d\u5230\uff0c\u4f46\u662f\u5b57\u8282\u7801\u91cc\u9762\u6709\u53d8\u91cf\u540d\u79f0\u4fe1\u606f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1153615\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : BBCCBB <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ClassReader \u6216\u8005 java8 -parameter \u53c2\u6570. \u7136\u540e\u770b HandlerMethodArgumentResolver                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1153616\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : xzceprint <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8c22\u8c22\u5404\u4f4d\u7684\u89e3\u7b54\uff0c\u6211\u627e\u5230\u7b54\u6848\u4e86\u3002<br \/>spring MVC \u5e95\u5c42\u7528\u4e86 ASM \u6765\u83b7\u53d6\u65b9\u6cd5\u7684\u5f62\u53c2\u540d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Spring MVC \u53c2\u6570\u6620\u5c04\u95ee\u9898&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\/93573"}],"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=93573"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/93573\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93573"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}