{"id":554360,"date":"2022-02-09T08:22:13","date_gmt":"2022-02-09T00:22:13","guid":{"rendered":"http:\/\/4563.org\/?p=554360"},"modified":"2022-02-09T08:22:13","modified_gmt":"2022-02-09T00:22:13","slug":"%e9%98%bf%e9%87%8c-java-%e4%bb%a3%e7%a0%81%e8%a7%84%e8%8c%83%e7%9a%84%e7%96%91%e9%97%ae-pojo-%e7%b1%bb%e6%97%b6%e4%b8%8d%e8%a6%81%e8%ae%be%e5%ae%9a%e4%bb%bb%e4%bd%95%e5%b1%9e%e6%80%a7%e9%bb%98-5","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=554360","title":{"rendered":"\u963f\u91cc Java \u4ee3\u7801\u89c4\u8303\u7684\u7591\u95ee &#8211; POJO \u7c7b\u65f6\u4e0d\u8981\u8bbe\u5b9a\u4efb\u4f55\u5c5e\u6027\u9ed8\u8ba4\u503c"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1> \u963f\u91cc Java \u4ee3\u7801\u89c4\u8303\u7684\u7591\u95ee &#8211; POJO \u7c7b\u65f6\u4e0d\u8981\u8bbe\u5b9a\u4efb\u4f55\u5c5e\u6027\u9ed8\u8ba4\u503c <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : beryl <\/span>  <span><i><\/i> 32<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<blockquote>\n<p>\u89c4\u7ea6 1.4.9 \u5b9a\u4e49 DO\/DTO\/VO \u7b49 POJO \u7c7b\u65f6\u4e0d\u8981\u8bbe\u5b9a\u4efb\u4f55\u5c5e\u6027\u9ed8\u8ba4\u503c<\/p>\n<\/blockquote>\n<p>\u5bf9\u4e8e\u5b9a\u4e49\u7684\u4e00\u4e9b DTO \u4e2d\u7684\u6570\u7ec4\u7c7b\u578b\uff0c\u4e60\u60ef\u6027\u8bbe\u7f6e\u6210\u4e00\u4e2a\u7a7a\u6570\u7ec4 new ArrayList \uff0c\u5982\u679c\u4e0d\u8bbe\u7f6e\u4e0b\u6e38\u591a\u5904\u5730\u65b9\u90fd\u9700\u8981\u5148\u5224\u7a7a\u3002<\/p>\n<p>\u6240\u4ee5\u5bf9\u4e8e\u8fd9\u8df3\u89c4\u8303\u4e00\u76f4\u6301\u6709\u8d28\u7591\u770b\u6cd5\uff0c\u4e5f\u6709\u4eba\u63d0\u4e86 issue \u4f46\u662f\u56de\u7b54\u5e76\u4e0d\u80fd\u591f\u8bf4\u670d\u81ea\u5df1\uff0c\u4e0d\u77e5\u9053\u5927\u5bb6\u600e\u4e48\u770b\u5f85 https:\/\/github.com\/alibaba\/p3c\/issues\/360<\/p>\n<p>\u53e6\u5916\u770b\u4e86\u4e2a\u963f\u91cc\u7684\u5f00\u6e90\u9879\u76ee Nacos \u548c Sentinel \uff0c\u53d1\u73b0\u4e5f\u6ca1\u6709\u9075\u5b88\u8be5\u89c4\u8303\uff1a https:\/\/github.com\/alibaba\/nacos\/blob\/develop\/api\/src\/main\/java\/com\/alibaba\/nacos\/api\/naming\/pojo\/Cluster.java https:\/\/github.com\/alibaba\/Sentinel\/blob\/master\/sentinel-core\/src\/main\/java\/com\/alibaba\/csp\/sentinel\/node\/DefaultNode.java<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>16<\/span>) <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"7047362\" 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> \u8fd9\u53ea\u662f\u4e2a\u53c2\u8003. \u6839\u636e\u4f60\u5b9e\u9645\u573a\u666f\u6765\u5224\u65ad\u7528\u4e0d\u7528. \u6ca1\u5fc5\u8981\u8ff7\u4fe1.. <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7047363\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hidemyself <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u4e0d\u662f\u6cd5\u5f8b\u6cd5\u89c4\uff0c\u6ca1\u6709\u5fc5\u8981\u4e00\u5b9a\u9075\u5b88 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7047364\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Vegetable <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u89c4\u8303\u5c31\u662f\u4e3a\u4e86\u964d\u4f4e\u6c9f\u901a\u6210\u672c\u548c\u72af\u9519\u7684\u53ef\u80fd\u6027\u3002\u4f60\u80fd\u8981\u6c42\u6240\u6709\u540c\u4e8b\u5728\u6784\u9020\u5668\u91cc\u4e3a\u6240\u6709\u5c5e\u6027\u586b\u5145 0 \u503c\u4e5f\u884c\uff0c\u53ea\u8981\u5927\u5bb6\u90fd\u4e00\u6837\u5c31\u884c\u4e86\uff0c\u6ca1\u5fc5\u8981\u8d28\u7591\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7047365\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gadfly3173 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u8fd9\u4fe9\u4f8b\u5b50\u90fd\u662f\u914d\u7f6e\u7c7b\u4e00\u7c7b\u7684\u4e1c\u897f\u3002\u89c4\u7ea6\u91cc\u7ed9\u7684\u573a\u666f\u610f\u601d\u4e5f\u662f\u7528\u6765\u533a\u5206 0 \u548c null \u7684\u3002\u5982\u679c\u4f60\u7684\u573a\u666f\u91cc\u4e0d\u5e94\u8be5\u51fa\u73b0 null \uff0c\u90a3\u8bbe\u4e2a\u9ed8\u8ba4\u503c\u4e5f\u5f88\u5408\u7406\uff0c\u5c31\u50cf @RequestParam(defaultValue=xxx)\u8fd9\u6837 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7047366\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AoEiuV020 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u770b\u6309\u89c4\u8303\u7684\u610f\u601d\uff0c\u5982\u679c\u8fd9\u4e2a\u6570\u7ec4\u5b57\u6bb5\u53ef\u80fd\u4e3a\u7a7a\uff0c\u90a3\u540e\u9762\u7a7a\u5224\u65ad\u5c31\u662f\u4e86\uff0c<br \/>\u5982\u679c\u8fd9\u4e2a\u5b57\u6bb5\u4e0d\u53ef\u4ee5\u4e3a\u7a7a\uff0c\u90a3\u521b\u5efa\u7684\u65f6\u5019\u5c31\u5fc5\u987b\u7ed9\u4e2a\u503c\uff0c\u6ca1\u5185\u5bb9\u5c31\u5fc5\u987b\u662f\u4e2a\u7a7a\u6570\u7ec4[]\u800c\u4e0d\u80fd\u662f null \uff0c\u540e\u9762\u4e0d\u9700\u8981 null \u7a7a\u5224\u65ad\uff0c<br \/>\u6211\u5c31\u6bd4\u8f83\u559c\u6b22\u8fd9\u6837\u7684\uff0c\u6709\u6ca1\u6709\u5185\u5bb9\u6570\u7ec4\u90fd\u522b null \uff0c \u4f46\u8fd9\u9700\u8981\u524d\u540e\u7aef\u5171\u540c\u52aa\u529b\uff0c\u4e00\u73af\u6389\u94fe\u5b50\u5c31\u5d29\u6e83\u6240\u4ee5\u5b9e\u9645\u4e0a\u8fd8\u662f\u5f97\u81ea\u5df1\u517c\u5bb9 null \uff0c <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7047367\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Leviathann <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> java \u7684\u7c7b\u578b\u7cfb\u7edf\u592a\u5f31\u9e21<br \/>\u6ca1\u6cd5\u8ba9\u4eba\u610f\u8bc6\u5230\u53ef null \u4e0d\u53ef null \u662f\u4e24\u4e2a\u7c7b\u578b<br \/>\u800c\u7a7a\u5217\u8868\u548c\u975e\u7a7a\u5217\u8868\u4ecd\u7136\u662f\u540c\u4e00\u4e2a\u7c7b\u578b <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7047368\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : itechnology <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u8fd9\u53ea\u662f\u963f\u91cc\u63d0\u51fa\u7684\u4ee3\u7801\u89c4\u8303\uff0c\u5e76\u4e0d\u662f\u4e00\u5b9a\u8981\u6309\u7167\u4ed6\u7684\u6765\u7684\uff0c\u6bd5\u7adf\u53c8\u4e0d\u662f\u4ed6\u8bf4\u4e86\u7b97 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7047369\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : passerbytiny <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u963f\u91cc\u89c4\u8303\u53ea\u9002\u5408\u963f\u91cc\u3002Java \u901a\u7528\u5f00\u53d1\u89c4\u8303\u5efa\u8bae\u7528 Google \u7684\uff0cGithub \u4e0a\u5c31\u6709\uff0c\u4f46\u662f\u5efa\u8bae\u624b\u52a8\u9075\u5faa\u89c4\u8303\uff0c\u4e0d\u8981\u7528\u90a3\u4e2a\u683c\u5f0f\u5316\u63d2\u4ef6\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7047370\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lonenol <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u8fd9\u4e2a\u4e0d\u8ba9\u8bbe\u9ed8\u8ba4\u503c\u5176\u5b9e\u4e3b\u8981\u662f\u9488\u5bf9 DB \u66f4\u65b0\u7684\u573a\u666f\uff0c\u6bd4\u5982\u4e3a\u4e86\u5077\u61d2\uff0c\u4f60\u7684 DAO \u5c42\u7684\u66f4\u65b0\u662f\u4f20\u9012\u4e00\u4e2a\u5bf9\u8c61\uff0c\u7136\u540e\u5224\u65ad\u4e0d\u662f\u7a7a\u5c31\u66f4\u65b0\uff0c\u662f\u7a7a\u5c31\u8df3\u8fc7\uff08\u5f88\u591a\u4eba\u4e3a\u4e86\u5077\u61d2\u8fd9\u4e48\u5199\uff09\uff0c\u7136\u540e\u4f60\u66f4\u65b0\u7684\u65f6\u5019\u521d\u59cb\u5316\u4e86\u4e00\u4e2a\u5bf9\u8c61\uff0c\u8bbe\u7f6e\u4e86 id \u548c\u4f60\u8981\u66f4\u65b0\u7684\u5b57\u6bb5\uff0c\u7136\u540e\u5176\u4ed6\u5b57\u6bb5\u5c31\u90fd\u88ab\u66f4\u65b0\u6210\u9ed8\u8ba4\u503c\u4e86\u3002\u3002<br \/>\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u907f\u514d\uff0c\u8fd9\u53ea\u662f\u4e00\u79cd\u53ef\u80fd\u3002\u3002\u76f8\u6bd4\u4e8e\u524d\u7aef\u7684\u7ea6\u5b9a\uff0c\u8fd9\u79cd\u9519\u8bef\u9020\u6210\u7684\u635f\u5931\u66f4\u5927\u4e00\u4e9b\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7047371\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pengtdyd <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u5927\u5bb6\u8fd8\u8bb0\u5f97\u6570\u636e\u5e93\u4e09\u8303\u5f0f\u5417\uff1f\uff1f\uff1f\uff1f\u4e00\u5473\u7684\u9075\u5b88\u6240\u8c13\u7684\u89c4\u8303\u53ea\u4f1a\u8ba9\u4f60\u9677\u5165\u5230\u4e00\u4e2a\u601d\u60f3\u4e0a\u9ed1\u6d1e\u3002\u7075\u6d3b\u8fd0\u7528\u4ece\u5b9e\u9645\u60c5\u51b5\u51fa\u53d1\uff0c\u89e3\u51b3\u73b0\u5b9e\u95ee\u9898\uff0c\u6700\u540e\u5f62\u6210\u89c4\u8303\uff0c\u8fd9\u4e2a\u624d\u662f\u6700\u597d\u6700\u5408\u9002\u7684\u89c4\u8303\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7047372\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chendy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u963f\u91cc\u5bb6\u7684\u89c4\u77e9\u662f\u963f\u91cc\u5bb6\u7684\uff0c\u4e0d\u559c\u6b22\u4e0d\u4e60\u60ef\u4e0d\u9700\u8981\u5f3a\u8feb\u81ea\u5df1\uff0c\u66f4\u4f55\u51b5\u4ed6\u4eec\u81ea\u5df1\u5176\u5b9e\u90fd\u9075\u5b88\u4e0d\u597d<br \/>\u987a\u4fbf\u4e00\u8bf4\uff0c\u9ed8\u8ba4\u7a7a\u96c6\u5408\u5e94\u8be5\u7528 Collections.emptyXXX() \uff08\u4f46\u662f\u8fd9\u4e2a\u96c6\u5408\u4e0d\u80fd\u5199\uff09 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7047373\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wolfie <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u62ff\u963f\u91cc\u5df4\u5df4\u81ea\u5df1\u7684\u7f16\u7a0b\u89c4\u8303\u626b\u4e86\u4e00\u4e0b\u963f\u91cc\u5df4\u5df4\u7684\u6240\u6709\u5f00\u6e90\u9879\u76ee<br \/> \/t\/543954 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7047374\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Oktfolio <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u6211\u5c31\u9047\u5230\u8fc7\u9ed8\u8ba4\u503c\u7684\u5751 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7047375\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : angryfish <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u770b\u4e00\u4e0b\u5c31\u597d \uff0c\u53d6\u5176\u7cbe\u534e\uff0c\u53bb\u5176\u7cdf\u7c95\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7047376\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 0608516518 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u6709\u4e9b\u7f16\u7801\u89c4\u8303\u662f\u4e3a\u4e86\u964d\u4f4e\u98ce\u9669\uff0c\u6216\u8005\u7531\u4e8e\u67d0\u4e9b\u516c\u53f8\u5185\u90e8\u539f\u56e0\uff08\u5386\u53f2\u539f\u56e0\uff0c\u6216\u8005\u53ea\u6709\u963f\u91cc\u624d\u4f1a\u9047\u5230\u7684\u6027\u80fd\u95ee\u9898\uff09\u800c\u63d0\u51fa\u6765\u7684\u3002\u6211\u5370\u8c61\u6df1\u523b\u7684\u662f boolean \u53d8\u91cf\u4e0d\u8981\u53eb isGood \uff0c\u800c\u8981\u53eb good \uff0c\u5426\u5219\u67d0\u4e9b\u6846\u67b6\u5e8f\u5217\u5316\u6210 json \uff0c\u4f1a\u53d8\u6210 is_is_good \u3002\u4f46\u8bf7\u95ee\u73b0\u4ee3 jackson \u4f1a\u5417\uff1f\u4e0d\u4f1a\u3002<br \/>\u770b\u89c4\u8303\uff0c\u66f4\u91cd\u8981\u7684\u662f\u770b\u5b83\u4e3a\u4ec0\u4e48\u8981\u8fd9\u6837\u5199\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7047377\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Chinsung <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u8fd9\u79cd\u9075\u5b88\u81ea\u5df1\u548c\u524d\u7aef\u7684\u7ea6\u5b9a\u5c31\u5b8c\u4e8b\u4e86\uff0c\u8fd9\u4e1c\u897f\u53c8\u4e0d\u662f\u5723\u7ecf\uff0c\u56e2\u961f\u7ba1\u7406\u7684\u4e8b\u60c5\uff0c\u5c31\u7b97\u4f60\u4e00\u4e2a\u4eba\u9075\u5b88\u4e86\u6240\u8c13\u300a\u963f\u91cc\u5df4\u5df4\u89c4\u8303\u300b\uff0c\u4f60\u4e5f\u4e0d\u80fd\u4fdd\u8bc1\u5176\u4ed6\u4eba\u90fd\u9075\u5b88\u4e86\uff0c\u8fd9\u79cd\u4e8b\u60c5\u7684\u524d\u63d0\u8fd8\u662f\u5148\u5b8c\u6210\u4efb\u52a1\u5427\u3002<br \/>\u66f4\u4f55\u51b5\u4e0a\u9762\u6709\u4f4d\u5927\u4f6c\u4e5f\u626b\u8fc7\u963f\u91cc\u5f00\u6e90\u6e90\u7801\uff0c\u4ed6\u4eec\u81ea\u5df1\u9075\u5b88\u7684\u4e5f\u4e00\u822c\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u963f\u91cc Java \u4ee3\u7801\u89c4\u8303\u7684\u7591\u95ee &#038;&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/554360"}],"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=554360"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/554360\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=554360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=554360"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=554360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}