{"id":152902,"date":"2020-09-07T23:02:43","date_gmt":"2020-09-07T15:02:43","guid":{"rendered":"http:\/\/4563.org\/?p=152902"},"modified":"2020-09-07T23:02:43","modified_gmt":"2020-09-07T15:02:43","slug":"java-%e6%9c%89%e6%88%90%e7%86%9f%e7%9a%84%e6%a1%86%e6%9e%b6-%e8%8e%b7%e5%8f%96%e5%b5%8c%e5%a5%97%e5%a4%9a%e5%b1%82%e5%af%b9%e8%b1%a1%e7%9a%84%e6%89%80%e6%9c%89%e5%b1%9e%e6%80%a7%e5%af%b9%e8%b1%a1","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=152902","title":{"rendered":"Java \u6709\u6210\u719f\u7684\u6846\u67b6 \u83b7\u53d6\u5d4c\u5957\u591a\u5c42\u5bf9\u8c61\u7684\u6240\u6709\u5c5e\u6027\u5bf9\u8c61\u5417\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Java \u6709\u6210\u719f\u7684\u6846\u67b6 \u83b7\u53d6\u5d4c\u5957\u591a\u5c42\u5bf9\u8c61\u7684\u6240\u6709\u5c5e\u6027\u5bf9\u8c61\u5417\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ffw5b7 <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u5982\u9898\uff0c\u6bd4\u5982 \u5982\u4f55\u81ea\u52a8\u5c06\u4e00\u4e2a\u5bf9\u8c61\u7684\u6240\u6709\u6570\u5b66\u5c5e\u6027 \u5927\u4e8e 1000 \u7684 \u8f6c\u6362\u4e3a xx.x \u4e07\u3002 <\/p>\n<p>\u4e2a\u4eba\u60f3\u6cd5\u662f<br \/> 1.\u9012\u5f52\u62ff\u6240\u6709\u5c5e\u6027\u5bf9\u8c61\uff0c\u5224\u65ad\u5c5e\u6027\u7c7b\u578b\u662f\u5426\u662f int \u4e4b\u7c7b\u7684\uff0c\u518d\u5224\u65ad\u662f\u5426\u5927\u4e8e 1w\uff0c\u622a\u53d6\u5c0f\u6570\u3002<br \/> \u95ee\u9898\uff1a<br \/> \u5982\u679c\u6709\u5176\u4ed6\u7684\u6570\u5b66\u5c5e\u6027\u4e0d\u9700\u8981\u8f6c\u6362\uff0c\u8fd9\u6837\u4e5f\u8f6c\u4e86\uff0c\u4e0d\u884c\uff0c<\/p>\n<p> 2. \u52a0\u4e2a\u5224\u65ad\uff0c\u5c5e\u6027\u540d\u89c4\u8303 \u53ea\u6709\u5c5e\u6027\u540d A \u7684\u624d\u8f6c\u6362\u3001<\/p>\n<p> \u5ef6\u4f38\u95ee\u9898\uff0c\u6709\u6210\u719f\u7684\u5de5\u5177\u7c7b\u5417\uff1f \u8fd9\u6837\u6027\u80fd\u600e\u4e48\uff1f \u5982\u679c\u8fd9\u6837\u5b9e\u73b0\u8fd8\u6709\u5176\u4ed6\u5751\u5417\uff1f <\/p>\n<p> \u5728\u4e0b\uff0c\u5c0f\u767d\u641c\u4e0d\u5230\u7c7b\u4f3c\u7684\uff0c\u539a\u8138\u76ae\u4f38\u624b\u4e86      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>9<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3205752\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : ffw5b7 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u60f3\u4ece\u6570\u636e\u6e90\u5199 sql \u7684\u65f6\u5019\u4e3b\u89c2\u76f4\u63a5\u5904\u7406\u4e86\uff0c<br \/>\u6216\u8005\u8bf4\u8fd8\u6709\u7c7b\u4f3c\u7684\u9700\u6c42\u4e0d\u662f\u8f6c\u6362\uff0c<br \/>\u76ee\u7684\u662f\u5982\u9898\uff1a\u83b7\u53d6\u5d4c\u5957\u591a\u5c42\u5bf9\u8c61\u7684\u6240\u6709\u5c5e\u6027\u5bf9\u8c61                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3205753\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lychs1998 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u660e\u767d\u8fd9\u6837\u7684\u5e94\u7528\u573a\u666f\u662f\u4ec0\u4e48\u3002\u6570\u503c\u7684\u4f18\u52bf\u5c31\u5728\u4e8e\u53ef\u8fdb\u884c\u7b97\u6570\u8fd0\u7b97\uff0c\u8f6c\u6362\u4e3a x.xx \u4e07\u540e\u5e94\u8be5\u5c31\u53ea\u5269\u4e0b\u4e86\u663e\u793a\u4f5c\u7528\u3002\u800c\u663e\u793a\u4ec0\u4e48\u6837\u5b50\uff0c\u5e94\u8be5\u8ba9\u524d\u7aef\u5904\u7406\u3002\u63a5\u53e3\u4e0b\u53d1 x.xx \u4e07\u7684\u6570\u636e\u8fd8\u4f1a\u6076\u5fc3\u5230\u524d\u7aef\uff0c\u524d\u7aef\u505a\u6570\u636e\u5224\u65ad\u8fd8\u9700\u8981\u53bb\u8f6c\u6362\u4e3a\u6570\u503c\uff1f<br \/>\u540e\u7aef\u5982\u679c\u9700\u8981\u7528\u5230 x.xx \u4e07\u8fd9\u6837\u7684\u6570\u636e\uff0c\u90a3\u5c31\u81ea\u5df1\u5199\u4e2a get \u65b9\u6cd5\u7ed9\u9700\u8981\u7684\u5c5e\u6027\u505a\u8f6c\u6362\u5c31\u884c\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3205754\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : ffw5b7 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lychs1998 \u7ed9\u524d\u7aef\u7684\u6570\u636e \u90fd\u662f\u663e\u793a\u6570\u636e\uff0c\u524d\u7aef\u53ea\u8981\u6e32\u67d3\u3002 \u540e\u7aef\u60f3\u5728\u4ee3\u7801\u4e2d\u81ea\u52a8\u5904\u7406\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3205755\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lychs1998 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u662f\u83b7\u5f97\u5d4c\u5957\u591a\u5c42\u5c5e\u6027\u5bf9\u8c61\u8fd9\u4e2a\u5355\u4e00\u9700\u8981\u7684\u8bdd\uff0c\u5c31\u662f\u6570\u636e\u7ed3\u6784\u7684\u4e8b\u60c5\u4e86\uff0c\u628a\u6811\u5f62\u7ed3\u6784\u8f6c\u5316\u4e3a\u6570\u7ec4\u6216\u8005\u5355\u5c42\u6811\u5f62\u7ed3\u6784\u3002<br \/>\u6211\u4e4b\u524d\u5199\u8fc7\u4e00\u4e2a\u65b9\u6cd5\u662f\u89e3\u6790 json \u7684\u3002\u5d4c\u5957 n \u5c42\u7684\u6570\u636e\u4e5f\u53ef\u4ee5\u901a\u8fc7 a.b.c[1].d \u8fd9\u6837\u7684 key \u503c\u83b7\u53d6\uff0c\u540c\u65f6\u53ef\u4ee5\u7528 map \u7684 entryset \u904d\u5386\u3002\u672c\u8d28\u4e0a\u5c31\u662f\u6570\u636e\u7ed3\u6784\u7684\u8f6c\u6362\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3205756\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lychs1998 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ffw5b7 \u6211\u4e2a\u4eba\u5f88\u8ba8\u538c\u540e\u7aef\u8fc7\u5ea6\u5c01\u88c5\u6570\u636e\u3002\u6bd4\u5982\u65f6\u95f4\uff0c\u6211\u66f4\u5e0c\u671b\u4f20\u9012\u6211\u65f6\u95f4\u6233\u3002\u6570\u503c\u7684\u663e\u793a\u8f6c\u6362\u5bf9\u6211\u6765\u8bf4\u53ea\u662f\u5bf9 text \u505a\u4e00\u4e2a\u4fee\u6539\uff0cvalue \u8fd8\u662f\u6570\u503c\uff0c\u8fd9\u6837\u5b50\u6211\u524d\u7aef\u8ba1\u7b97\u4f1a\u65b9\u4fbf\u5f88\u591a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3205757\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : ffw5b7 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lychs1998 \u5212\u5206\u804c\u8d23\u7684\u539f\u7406\u8fd8\u662f\u4e0d\u61c2\uff0c\u524d\u7aef\u4e0d\u64c5\u957f\u5904\u7406\u590d\u6742\u7684\u4e1a\u52a1\u5224\u65ad\uff1f \u6216\u662f\u662f\u6027\u80fd\uff1f\u5ba2\u6237\u7aef\u6027\u80fd\u4f18\u5148\uff1f \u6570\u636e\u7ed3\u6784\u7684\u95ee\u9898\uff0c\u4e4b\u524d\u53c2\u8003 fastJson\uff0c\u6df1\u62f7\u8d1d\uff0c\u6709\u70b9\u5403\u529b\uff0c\u5c31\u60f3\u641c\u641c copy \u3002\u54c8\u54c8\u54c8                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3205758\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lychs1998 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u83b7\u5f97\u5d4c\u5957\u5bf9\u8c61\u6240\u6709\u5c5e\u6027\u503c\u53c2\u8003\u6211\u4e4b\u524d\u5199\u8fc7\u7684\u8fd9\u4e2a\u7c7b\uff08\u5199\u7684\u6bd4\u8f83\u70c2\uff09\uff1a https:\/\/github.com\/lychs1998\/CatMock\/blob\/master\/src\/main\/java\/cn\/myzju\/mock\/CatContainer.java<\/p>\n<p>\u4f46\u4e0d\u8981\u5f15\u5165\u6211\u5199\u7684\u8fd9\u4e2a\u4f9d\u8d56\uff0c\u6211\u8bbe\u8ba1\u7684\u65f6\u5019\u662f\u4e3a\u540e\u7aef mock \u6846\u67b6\u586b\u5165\u503c\u8bbe\u8ba1\u7684\uff0c\u6240\u4ee5\u53ea\u8003\u8651\u4e86\u89e3\u6790\uff0c\u6ca1\u8003\u8651\u8fd8\u539f\u5bf9\u8c61\u3002\u800c\u4e14\u540c\u4e2a\u5305\u4e0b\u7684 CatMock \u5bf9\u8c61\u66f4\u662f\u4f1a\u5f15\u5165 js \u6587\u4ef6\u548c graalvm \u3002<\/p>\n<p>\u4e00\u4e2a\u601d\u8def\uff1a\u628a json \u8f6c\u5316\u4e3a jsonString\uff0c\u7136\u540e\u5bf9\u9700\u8981\u8f6c\u6362\u7684\u5b57\u6bb5\u76f4\u63a5\u5904\u7406\uff0c\u6700\u540e\u628a\u5904\u7406\u4e86\u7684 jsonString \u7528 jackson \u8f6c\u6362\u4e3a\u5bf9\u8c61\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3205759\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Cbdy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u81ea\u5df1\u624b\u5199\u4e00\u4e0b\u4e5f\u5c31\u5341\u51e0\u4e8c\u5341\u884c\u4ee3\u7801\uff0c\u6ca1\u6709\u5fc5\u8981\u627e\u73b0\u6210\u7684\u5e93\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3205760\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : napsterwu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u624b\u5199\u4e00\u4e0b\u57fa\u672c\u90fd\u662f split(\u2018.\u2019)\u8fed\u4ee3\u4e00\u4e0b\uff0c\u518d\u5904\u7406\u4e00\u4e0b edge case\uff0c\u6ca1\u51e0\u884c\u4ee3\u7801\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Java \u6709\u6210\u719f\u7684\u6846\u67b6 \u83b7\u53d6\u5d4c\u5957\u591a&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\/152902"}],"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=152902"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/152902\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=152902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=152902"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=152902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}