{"id":100275,"date":"2020-05-22T05:54:57","date_gmt":"2020-05-21T21:54:57","guid":{"rendered":"http:\/\/4563.org\/?p=100275"},"modified":"2020-05-22T05:54:57","modified_gmt":"2020-05-21T21:54:57","slug":"java-%e6%80%8e%e4%b9%88%e8%be%83%e5%a5%bd%e7%9a%84%e6%8b%86%e5%88%86%e7%b1%bb%e6%96%87%e4%bb%b6%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=100275","title":{"rendered":"Java \u600e\u4e48\u8f83\u597d\u7684\u62c6\u5206\u7c7b\u6587\u4ef6\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Java \u600e\u4e48\u8f83\u597d\u7684\u62c6\u5206\u7c7b\u6587\u4ef6\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tctc4869 <\/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>java \u6709\u80fd\u50cf c#\u7684\u90e8\u5206\u7c7b\uff0c\u4f46\u8fd0\u884c\u7f16\u8bd1\u65f6\u662f\u770b\u6210\u4e00\u4e2a\u7c7b\u7684\u8fd9\u7c7b\u62c6\u5206\u65b9\u5f0f\uff0c\u4e0d\u77e5\u9053 java \u73b0\u5728\u66f4\u65b0\u4e86\u7c7b\u4f3c\u7684\u529f\u80fd\u6ca1\u6709\uff0c\u4e0d\u8fc7\u9664\u4e86\u8fd9\u4e2a\u62c6\u5206\u65b9\u5f0f\u8fd8\u6709\u5176\u4ed6\u7684\u65b9\u5f0f\u4e48\uff1f<\/p>\n<p>\u6211\u6307\u7684\u662f\u4e1a\u52a1\u7c7b\u4ee3\u7801\u62c6\u5206\uff0c\u5de5\u5177\u7c7b\u4ee3\u7801\u7684\u62c6\u5206\u5c31\u4e0d\u7528\u8bf4\u4e86<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1658404\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : TtTtTtT <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7075\u6d3b\u4f7f\u7528 Java8 interface default method \u53ef\u4ee5\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1658405\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : tctc4869 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @TtTtTtT <br \/> Java8 interface default method\uff0c\u7528\u5728\u4e1a\u52a1\u4ee3\u7801\u4e0a\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1658406\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : tctc4869 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @TtTtTtT \u6709\u4e2a\u95ee\u9898\uff0c\u5982\u679c\u662f Controller \u7c7b\u7684\u8bdd\uff0c\u62c6\u5206\u600e\u4e48\u529e\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1658407\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : james122333 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u653e\u5f03 java \u5427 (\u6ed1\u7a3d)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1658408\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : TtTtTtT <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3e\u4e2a\u4f8b\u5b50\u5427\uff1a<\/p>\n<p>interface CommonController&lt;T&gt; {<br \/> Dao&lt;T&gt; getDao();<\/p>\n<p> @RequestMapping(value = &#8220;\/&#8221;,method = RequestMethod.GET)<br \/> default List&lt;T&gt; get() {<br \/> return getDao().getList();<br \/> }<br \/>}<\/p>\n<p>@RequestMapping(&#8220;\/user&#8221;)<br \/>class UserController implements CommmonController&lt;User&gt; {<br \/> @Getter<br \/> private Dao&lt;User&gt; dao;<br \/>}                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1658409\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ConradG <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             java \u76ee\u524d\u4e0d\u76f4\u63a5\u63d0\u4f9b\u8fd9\u79cd\u65b9\u5f0f\u3002<br \/>\u95f4\u63a5\u65b9\u5f0f\u4e4b\u4e00\u662f\u4ece\u5934\u7ee7\u627f\u5230\u5c3e\u3002<\/p>\n<p>\u4e0d\u8fc7 spring mvc \u7684 controller \u4e0d\u5b58\u5728\u8fd9\u4e2a\u95ee\u9898\uff0c\u540c\u4e00\u4e2a\u7c7b\u7ea7\u7684 @RequestMapping \u53ef\u4ee5\u5728\u591a\u4e2a controller \u91cc\u4f7f\u7528\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1658410\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : james122333 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4eba\u751f\u5c31\u4e0d\u8be5\u6d6a\u8d39\u5728\u5e95\u5c42\u4e71\u4e03\u516b\u7cdf\u7684\u8bed\u8a00\u4e0a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Java \u600e\u4e48\u8f83\u597d\u7684\u62c6\u5206\u7c7b\u6587\u4ef6\uff1f &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\/100275"}],"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=100275"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/100275\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100275"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}