{"id":5732,"date":"2024-09-03T15:01:01","date_gmt":"2024-09-03T07:01:01","guid":{"rendered":""},"modified":"2024-09-03T15:01:01","modified_gmt":"2024-09-03T07:01:01","slug":"\u5b89\u5353\u7f51\u7edc\u8bf7\u6c42\u6846\u67b6retrofit_\u5f00\u53d1\u6846\u67b6","status":"publish","type":"post","link":"https:\/\/mushiming.com\/5732.html","title":{"rendered":"\u5b89\u5353\u7f51\u7edc\u8bf7\u6c42\u6846\u67b6retrofit_\u5f00\u53d1\u6846\u67b6"},"content":{"rendered":"
\n \u7b14\u8005\u5c06\u901a\u8fc711\u7bc7\u535a\u5ba2\u5bf9\u4e2a\u4eba\u5f00\u6e90\u6846\u67b6\u8fdb\u884c\u8bb2\u89e3\uff0c\u672c\u7bc7\u4e3a\u7b2c11\u7bc7\uff0c\u8fdb\u884c\u603b\u7ed3\u3002\n<\/div>\n
\n
\n<\/div>\n
\n \u5f00\u6e90\u5e93github\u5730\u5740  https:\/\/github.com\/\/Android-Universial-NetFrame
\n
\n<\/div>\n
\n
\n<\/div>\n
\n \u5982\u679c\u6709\u5174\u8da3\u4e00\u8d77\u8ba8\u8bba\u672c\u6846\u67b6\u7684\u5185\u5bb9\uff0c\u8bf7\u52a0\uff1a\n<\/div>\n
\n
\n<\/div>\n
\n
\n<\/div>\n
\n
\n<\/div>\n
\n Android\u901a\u7528\u7f51\u7edc\u8bf7\u6c42\u89e3\u6790\u6846\u67b6\uff0cAndroid-Universial-NetFrame\uff0c\u7b80\u79f0aun\u3002\n<\/div>\n
\n
\n<\/div>\n
\n \u524d\u9762\u901a\u8fc710\u7bc7\u535a\u5ba2\u5bf9aun\u8fdb\u884c\u8bb2\u89e3\uff0c\u8fd9\u91cc\u5148\u653e\u4e0a\u76ee\u5f55\n<\/div>\n
\n
\n<\/div>\n
\n Android\u901a\u7528\u7f51\u7edc\u8bf7\u6c42\u89e3\u6790\u6846\u67b6.1\uff08\u9700\u6c42\uff0c\u601d\u60f3\uff09\n<\/div>\n
\n Android\u901a\u7528\u7f51\u7edc\u8bf7\u6c42\u89e3\u6790\u6846\u67b6.2\uff08\u6784\u9020\u6846\u67b6\uff09\n<\/div>\n
\n Android\u901a\u7528\u7f51\u7edc\u8bf7\u6c42\u89e3\u6790\u6846\u67b6.3\uff08\u4ee3\u7801\u5b9e\u73b0\uff0c\u516c\u5171\u90e8\u5206\uff09\n<\/div>\n
\n Android\u901a\u7528\u7f51\u7edc\u8bf7\u6c42\u89e3\u6790\u6846\u67b6.4\uff08\u4ee3\u7801\u5b9e\u73b0\uff0c\u5206\u652f\u90e8\u5206\uff09\n<\/div>\n
\n Android\u901a\u7528\u7f51\u7edc\u8bf7\u6c42\u89e3\u6790\u6846\u67b6.5\uff08\u4f7f\u7528\u6846\u67b6\uff09\n<\/div>\n
\n Android\u901a\u7528\u7f51\u7edc\u8bf7\u6c42\u89e3\u6790\u6846\u67b6.6\uff08\u81ea\u5b9a\u4e49\u89e3\u6790\u5668\uff09\n<\/div>\n
\n Android\u901a\u7528\u7f51\u7edc\u8bf7\u6c42\u89e3\u6790\u6846\u67b6.7\uff08\u540c\u6b65\u8bf7\u6c42\uff0c\u516c\u5171\u90e8\u5206\uff09\n<\/div>\n
\n Android\u901a\u7528\u7f51\u7edc\u8bf7\u6c42\u89e3\u6790\u6846\u67b6.8\uff08\u540c\u6b65\u8bf7\u6c42\uff0c\u5206\u652f\u90e8\u5206\uff09\n<\/div>\n
\n Android\u901a\u7528\u7f51\u7edc\u8bf7\u6c42\u89e3\u6790\u6846\u67b6.9\uff08\u652f\u6301\u7b2c\u4e09\u65b9\u89e3\u6790\u6846\u67b6\uff09\n<\/div>\n
\n Android\u901a\u7528\u7f51\u7edc\u8bf7\u6c42\u89e3\u6790\u6846\u67b6.10\uff08\u53d1\u73b0\u95ee\u9898\uff0c\u6539\u5584\uff09
\n
\n<\/div>\n
\n
\n<\/div>\n
\n \u7b14\u8005\u603b\u7ed3\u4e86\u65e5\u5e38Android\u5f00\u53d1\u4e2d\u7f51\u7edc\u8bf7\u6c42\u548c\u89e3\u6790\u65b9\u9762\u4ee3\u7801\u5b9e\u73b0\u7684\u4e00\u4e9b\u5171\u6027\uff0c\u5b9e\u73b0\u4e86aun\uff0c\n<\/div>\n
\n aun\u53ef\u4ee5\u8bf4\u662f\u5bf9\u4f17\u591a\u5f00\u53d1\u8005\u5728\u8fd9\u65b9\u9762\u6240\u5f00\u53d1\u4ee3\u7801\u7684\u4e00\u6b21\u91cd\u6784\u3002
\n
\n<\/div>\n
\n
\n<\/div>\n
\n aun\u4e3a\u4e1a\u52a1\u578b\u6846\u67b6\uff0c\u8ddf\u5de5\u5177\u578b\u6846\u67b6\u662f\u4e0d\u4e00\u6837\u7684\u3002\n<\/div>\n
\n \u5de5\u5177\u578b\u6846\u67b6\uff0c\u901a\u5e38\u4e0d\u9700\u8981\u4fee\u6539\u6e90\u7801\uff0c\u76f4\u63a5\u6839\u636e\u67d0\u4e00\u7279\u5b9a\u9700\u6c42\u6765\u5b9e\u73b0\u7684\u4ee3\u7801\u3002\u6bd4\u5982gson\uff0cokhttp\u3002\n<\/div>\n
\n \u4e1a\u52a1\u578b\u6846\u67b6\uff0c\u662f\u9879\u76ee\u4e2d\u4e00\u4e9b\u6a21\u5757\u7684\u4ee3\u7801\u51fa\u73b0\u8026\u5408\uff0c\u518d\u9488\u5bf9\u8026\u5408\u8fdb\u884c\u91cd\u6784\u800c\u5b9e\u73b0\u7684\u4ee3\u7801\u3002aun\u6b63\u662f\u5982\u6b64\u3002\n<\/div>\n
\n
\n<\/div>\n
\n \u6709\u4e9b\u5927\u578b\u4e1a\u52a1\u578b\u6846\u67b6\uff0c\u662f\u9700\u8981\u7528\u5927\u91cf\u7684\u914d\u7f6e\u6587\u4ef6\u6765\u5b9e\u73b0\u7684\uff0c\u56e0\u4e3a\u4fee\u6539\u4ee3\u7801\u592a\u8fc7\u4e8e\u9ebb\u70e6\u4e86\uff0cAndroid\u5f00\u53d1\u4e2d\u8fd9\u6837\u7684\u6846\u67b6\u6bd4\u8f83\u5c11\uff0c\u670d\u52a1\u7aef\u5f00\u53d1\u4e2d\u5c31\u6bd4\u8f83\u591a\uff0c\u6bd4\u5982JavaEE\u5c31\u6709\u975e\u5e38\u591a\u8fd9\u6837\u7684\u6846\u67b6\u3002\n<\/div>\n
\n
<\/strong><\/span>\n<\/div>\n
\n \u5728\u7b14\u8005\u5bf9aun\u8fdb\u884c\u5ba3\u4f20\u7684\u65f6\u5019\uff0c\u5c31\u6709\u4eba\u8bf4\u4e86\uff1a\u4f60\u662fSB\u5417\uff1f\u4f60\u5199\u7f51\u7edc\u8bf7\u6c42\u89e3\u6790\u6846\u67b6\u6709\u4ec0\u4e48\u7528\uff0c\u7f51\u7edc\u8bf7\u6c42\u6211\u7528OkHttp\u6846\u67b6\uff0c\u89e3\u6790\u6211\u7528Gson\u6846\u67b6\uff0c\u8fd8\u7528\u4f60\u8fd9\u4e2a\u6846\u67b6\u5e72\u561b\uff0c\u4f60\u5199\u5f97\u80af\u5b9a\u6ca1\u4ed6\u4ed6\u4eec\u597d\uff0c\u8c01\u8fd8\u4f1a\u7528\u4f60\u8fd9\u4e2a\u6846\u67b6\u3002<\/strong><\/span>\n<\/div>\n
\n
\n<\/div>\n
\n \u5176\u5b9e\u4e0d\u7136\u3002<\/strong><\/span>\n<\/div>\n
\n
\n<\/div>\n
\n aun\u4e0d\u4e0e\u4f20\u7edf\u7684\u5de5\u5177\u578b\u6846\u67b6\u7ade\u4e89\uff0c\u800c\u662f\u4f7f\u7528\u4ed6\u4eec\uff0c\u4ee3\u7801\u53ef\u4ee5\u76f8\u4e92\u878d\u5408\u3002\n<\/div>\n
\n \u5bf9\u4e8e\u7f51\u7edc\u8bf7\u6c42\uff0caun\u53ef\u4ee5\u4e0e\u5176\u5b83\u6846\u67b6\u878d\u5408\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u4fee\u6539\u5c11\u91cf\u4ee3\u7801\uff0c\u52a0\u5165\u5176\u5b83\u6846\u67b6\uff0c\u6bd4\u5982okhttp\u3002\n<\/div>\n
\n \u5bf9\u4e8e\u89e3\u6790\uff0c\u672c\u6846\u67b6\u5df2\u7ecf\u4f7f\u7528\u4e0a\u4e86gson\u548cfastjson\uff0c\u5e76\u4e14\u62e5\u6709\u591a\u79cd\u517c\u5bb9\u65b9\u5f0f\uff0c\u5982\u679c\u4f60\u6709\u4f7f\u7528gson\u548cfastjosn\u7684\u4e60\u60ef\uff0c\u4f7f\u7528\u672c\u6846\u67b6\u65e0\u9700\u518d\u6539\u4ee3\u7801\u3002\n<\/div>\n
\n
\n<\/div>\n
\n aun\u4e5f\u53ef\u4ee5\u8ddf\u5176\u5b83\u5de5\u5177\u578b\u6846\u67b6\u5206\u5f00\u5de5\u4f5c\uff0c\u53ef\u4ee5\u6ca1\u6709\u4ee3\u7801\u4ea4\u53c9\u3002\n<\/div>\n
\n
\n<\/div>\n
\n \u6211\u60f3\u7528\u51e0\u5f20\u56fe\u6765\u8868\u8fbeaun\u7684\u5de5\u4f5c\u8303\u56f4\u3002\n<\/div>\n
\n
\n<\/div>\n
\n \u5728\u6ca1\u6709\u4f7f\u7528aun\u7684\u65f6\u5019\uff0c\u5f00\u53d1\u8005\u53ef\u80fd\u4f7f\u7528\u4e86\u5176\u5b83\u5de5\u5177\u578b\u6846\u67b6\u3002\u5f53\u7136\u4e5f\u53ef\u80fd\u6ca1\u6709\u4f7f\u7528\u3002\n<\/div>\n
\n \"\u5b89\u5353\u7f51\u7edc\u8bf7\u6c42\u6846\u67b6retrofit_\u5f00\u53d1\u6846\u67b6
\n
\n<\/div>\n
\n
\n<\/div>\n
\n
\n<\/div>\n
\n \u90a3\u4e48\uff0c\u5728\u4f7f\u7528aun\u6846\u67b6\u540e\uff0c\u6574\u4e2a\u7ed3\u6784\u4f1a\u662f\u600e\u6837\u7684\u5462\uff1f\u6765\u770b\u4e0b\u56fe\n<\/div>\n
\n \"\u5b89\u5353\u7f51\u7edc\u8bf7\u6c42\u6846\u67b6retrofit_\u5f00\u53d1\u6846\u67b6
\n
\n<\/div>\n
\n
\n<\/div>\n
\n aun\u5de5\u4f5c\u5728\u4e1a\u52a1\u5c42\uff0c\u628a\u539f\u67653\u4e2a\u6a21\u5757\u7684\u4e1a\u52a1\u53d8\u6210\u4e861\u4e2a\u3002\n<\/div>\n
\n aun\u4e0d\u6d89\u53ca\u5de5\u5177\u5c42\u90a3\u4e9b\u6846\u67b6\u7684\u5185\u5bb9\uff0c\u4e0d\u4f1a\u53bb\u5b9e\u73b0\u4ed6\u4eec\u7684\u529f\u80fd\uff0c\u4f46aun\u4f1a\u8c03\u7528\u5de5\u5177\u5c42\u6846\u67b6\u3002\n<\/div>\n
\n
\n<\/div>\n
\n \u4e5f\u53ef\u4ee5\u8ba9aun\u8ddf\u5de5\u5177\u578b\u6846\u67b6\u4e0d\u4ea4\u53c9\uff0c\u6765\u770b\u4e0b\u56fe\n<\/div>\n
\n \"\u5b89\u5353\u7f51\u7edc\u8bf7\u6c42\u6846\u67b6retrofit_\u5f00\u53d1\u6846\u67b6
\n
\n<\/div>\n
\n
\n<\/div>\n
\n \u8fd9\u4e2a\u65f6\u5019\uff0caun\u8fd8\u662f\u628a\u4e09\u4e2a\u6a21\u5757\u7ed9\u7b80\u5316\u6210\u4e861\u4e2a\uff0c\u4f46\u4e0d\u548c\u5176\u5b83\u5de5\u5177\u578b\u6846\u67b6\u4ea4\u53c9\u3002\n<\/div>\n
\n
\n<\/div>\n
\n
\n<\/div>\n
\n \u5982\u679c\u8981\u7406\u89e3\u6574\u4e2aaun\u6846\u67b6\uff0c\u5fc5\u987b\u6709\u4e00\u5b9a\u7684Java\u57fa\u7840\uff0c\u7279\u522b\u662f\u5728\u6cdb\u578b\uff0c\u62bd\u8c61\u7c7b\uff0c\u63a5\u53e3\uff0c\u7ee7\u627f\uff0c\u8fd9\u4e9b\u65b9\u9762\u8981\u6709\u4e00\u5b9a\u57fa\u7840\u3002\n<\/div>\n
\n \u7b14\u8005\u5728\u8fd9\u91cc\u63a8\u8350\u4e00\u672c\u4e66\u300aJava\u7f16\u7a0b\u601d\u60f3\u300b\u7b2c4\u7248\u3002\n<\/div>\n
\n
\n<\/div>\n
\n
\n<\/div>\n
\n \u5bf9\u4e8e\u6846\u67b6\u7684\u8bb2\u89e3\uff0c\u8fd9\u91cc\u5e94\u8be5\u4e5f\u53ea\u662f\u7b2c\u4e00\u671f\u3002\u540e\u671f\u6846\u67b6\u5982\u679c\u6709\u5927\u7684\u4fee\u6539\uff0c\u4f1a\u518d\u5199\u535a\u5ba2\u8fdb\u884c\u8bb2\u89e3\u3002\n<\/div>\n
\n
\n<\/div>\n
\n \u6700\u540e\u8fd8\u662f\u8981\u63d0\u9192\u4e00\u4e0b\u8bfb\u8005\uff0c\u53ef\u4ee5\u6839\u636e\u535a\u6587\u5f00\u5934\u4e2d\u7ed9\u51fa\u7684github\u5730\u5740\u6765\u4e0b\u8f7d\u6e90\u7801\uff0c\u6709\u5174\u8da3\u7684\u53ef\u4ee5\u52a0\u4ea4\u6d41\u3002\n<\/div>\n
\n \u5f00\u6e90\u4e0d\u6613\uff0c\u5199\u535a\u5ba2\u66f4\u4e0d\u6613\uff0c\u5e0c\u671b\u5927\u5bb6\u5c0a\u91cd\u77e5\u8bc6\u4ea7\u6743\uff0c\u795d\u5927\u5bb6\u53ef\u4ee5\u5199\u51fa\u8d8a\u6765\u8d8a\u597d\u7684\u4ee3\u7801\uff0c\u66f4\u591a\u597d\u7684\u5f00\u6e90\u6846\u67b6\u3002\n<\/div>\n
\n
\n<\/div>\n
\n
\n<\/div>\n
\n \u8c22\u8c22\n<\/div>\n","protected":false},"excerpt":{"rendered":"\u5b89\u5353\u7f51\u7edc\u8bf7\u6c42\u6846\u67b6retrofit_\u5f00\u53d1\u6846\u67b6\u7b14\u8005\u5c06\u901a\u8fc711\u7bc7\u535a\u5ba2\u5bf9\u4e2a\u4eba\u5f00\u6e90\u6846\u67b6\u8fdb\u884c\u8bb2\u89e3\uff0c\u672c\u7bc7\u4e3a\u7b2c11\u7bc7\uff0c\u8fdb\u884c\u603b\u7ed3","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/5732"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=5732"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/5732\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=5732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=5732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=5732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}