{"id":3176,"date":"2023-11-02T17:20:29","date_gmt":"2023-11-02T09:20:29","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=3176"},"modified":"2023-11-02T17:20:29","modified_gmt":"2023-11-02T09:20:29","slug":"excel-%e6%95%b0%e6%8d%ae%e5%af%bc%e5%85%a5%ef%bc%8c%e5%a6%82%e4%bd%95%e6%9b%b4%e4%bc%98%e9%9b%85%e7%9a%84%e8%bf%9b%e8%a1%8c%e6%95%b0%e6%8d%ae%e6%a0%a1%e9%aa%8c%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/java\/excel-%e6%95%b0%e6%8d%ae%e5%af%bc%e5%85%a5%ef%bc%8c%e5%a6%82%e4%bd%95%e6%9b%b4%e4%bc%98%e9%9b%85%e7%9a%84%e8%bf%9b%e8%a1%8c%e6%95%b0%e6%8d%ae%e6%a0%a1%e9%aa%8c%ef%bc%9f\/","title":{"rendered":"Excel \u6570\u636e\u5bfc\u5165\uff0c\u5982\u4f55\u66f4\u4f18\u96c5\u7684\u8fdb\u884c\u6570\u636e\u6821\u9a8c\uff1f"},"content":{"rendered":"<div class='wxsyncmain'>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"font-size: 16px;padding-right: 10px;padding-left: 10px;word-break: break-word;text-align: left;line-height: 1.25;color: rgb(43, 43, 43);letter-spacing: 2px;background-image: linear-gradient(90deg, rgba(50, 0, 0, 0.04) 3%, rgba(0, 0, 0, 0) 3%), linear-gradient(360deg, rgba(50, 0, 0, 0.04) 3%, rgba(0, 0, 0, 0) 3%);background-size: 20px 20px;background-position: center center;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;\" data-mpa-powered-by=\"yiban.io\">\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: black;font-size: 17px;font-weight: bold;text-align: center;margin-top: 20px;margin-bottom: 20px;\"><span style=\"display: none;\"><\/span><span style=\"border-bottom: 2px solid RGBA(79, 177, 249, .65);color: #2b2b2b;padding-bottom: 2px;\"><span style=\"width: 30px;height: 30px;display: block;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164607165.png');background-position: center center;background-size: 30px;margin: auto auto -8px;opacity: 1;background-repeat: no-repeat;\"><\/span>\u4e00\u3001\u4ea7\u54c1\u9700\u6c42:<\/span><span style=\"display: none;\"><\/span><\/h3>\n<ol data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;font-size: 15px;color: rgb(89, 89, 89);\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;font-size: 14px;\">excel\u6570\u636e\u6a21\u677f\u4e0b\u8f7d<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;font-size: 14px;\">excel\u6570\u636e\u5bfc\u5165<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;font-size: 14px;\">\u5bfc\u5165\u5f97\u65f6\u5019\u6839\u636e\u6a21\u677f\u5f97\u6821\u9a8c\u89c4\u5219\u6765\u8fdb\u884c\u7b5b\u9009\uff0c\u5bfc\u5165\u6210\u529f\u7684\u8fd4\u56de\u6210\u529f\u5217\u8868\uff0c\u6570\u636e\u6709\u95ee\u9898\u5f97\u8fd4\u56de\u5931\u8d25\u5217\u8868\uff0c\u5931\u8d25\u5217\u8868\u652f\u6301\u6570\u636e\u7f16\u8f91\u4fee\u6b63<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;margin-top: 10px;margin-bottom: 10px;font-size: 14px;word-spacing: 2px;\">\u770b\u5230\u9700\u6c42\u7b2c\u4e00\u773c\u53ef\u80fd\u5c31\u662f\u7b2c\u4e09\u5217\u6709\u70b9\u96be\u5ea6\uff0c\u6211\u4eec\u77e5\u9053\uff0c\u4f20\u7edf\u5f97\u6570\u636e\u6821\u9a8c\u662f\u5728DTO\u4e0a\u9762\u52a0\u6ce8\u89e3<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: url(&quot;https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164622747.jpeg&quot;) 10px 10px \/ 40px no-repeat rgb(39, 40, 34);height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #ddd;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;letter-spacing: 0px;padding-top: 15px;background: #272822;border-radius: 5px;\"><span style=\"color: #75715e;line-height: 26px;\">@PostMapping<\/span>(<span style=\"color: #a6e22e;line-height: 26px;\">\"\/v2\/importExcel\"<\/span>)<span style=\"line-height: 26px;\"><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">public<\/span>UserExcelVO<span style=\"color: #a6e22e;font-weight: bold;line-height: 26px;\">importExcelV2<\/span><span style=\"line-height: 26px;\">(@RequestParam(<span style=\"color: #a6e22e;line-height: 26px;\">\"file\"<\/span>)<\/span>MultipartFilefile)<\/span>{List&lt;UserExcel&gt;list=<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">null<\/span>;List&lt;UserExcel&gt;fail=<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">new<\/span>ArrayList&lt;&gt;();UserExcelVOuserExcelVO=<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">new<\/span>UserExcelVO();<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">try<\/span>{list=EasyExcel.read(file.getInputStream(),UserExcel<span style=\"line-height: 26px;\">.<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">class<\/span>,<span style=\"font-weight: bold;color: white;line-height: 26px;\">new<\/span><span style=\"font-weight: bold;color: white;line-height: 26px;\">ModelExcelListener<\/span>()).<span style=\"font-weight: bold;color: white;line-height: 26px;\">sheet<\/span>().<span style=\"font-weight: bold;color: white;line-height: 26px;\">doReadSync<\/span>()<\/span>;list.forEach(data-&gt;{Set&lt;ConstraintViolation&lt;UserExcel&gt;&gt;violations=ValidationUtils.getValidator().validate(data);<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">if<\/span>(violations.size()&gt;<span style=\"line-height: 26px;\">0<\/span>){fail.add(data);}});userExcelVO.setFail(fail);list.removeAll(fail);userExcelVO.setSuccess(list);}<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">catch<\/span>(IOExceptione){e.printStackTrace();}<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">return<\/span>userExcelVO;}<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">static<\/span><span style=\"line-height: 26px;\"><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">class<\/span><span style=\"font-weight: bold;color: white;line-height: 26px;\">ModelExcelListener<\/span><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">extends<\/span><span style=\"font-weight: bold;color: white;line-height: 26px;\">AnalysisEventListener<\/span>&lt;<span style=\"font-weight: bold;color: white;line-height: 26px;\">UserExcel<\/span>&gt;<\/span>{<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">private<\/span>List&lt;UserExcel&gt;datas=<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">new<\/span>ArrayList&lt;&gt;();<span style=\"color: #75715e;line-height: 26px;\">\/***\u901a\u8fc7AnalysisContext\u5bf9\u8c61\u8fd8\u53ef\u4ee5\u83b7\u53d6\u5f53\u524dsheet\uff0c\u5f53\u524d\u884c\u7b49\u6570\u636e*\/<\/span><span style=\"color: #75715e;line-height: 26px;\">@Override<\/span><span style=\"line-height: 26px;\"><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">void<\/span><span style=\"color: #a6e22e;font-weight: bold;line-height: 26px;\">invoke<\/span><span style=\"line-height: 26px;\">(UserExceldata,AnalysisContextcontext)<\/span><\/span>{<span style=\"color: #75715e;line-height: 26px;\">\/\/\u6570\u636e\u5b58\u50a8\u5230list\uff0c\u4f9b\u6279\u91cf\u5904\u7406\uff0c\u6216\u540e\u7eed\u81ea\u5df1\u4e1a\u52a1\u903b\u8f91\u5904\u7406\u3002<\/span>log.info(<span style=\"color: #a6e22e;line-height: 26px;\">\"\u8bfb\u53d6\u5230\u6570\u636e{}\"<\/span>,data);datas.add(data);<span style=\"color: #75715e;line-height: 26px;\">\/\/\u6839\u636e\u4e1a\u52a1\u81ea\u884c\u5904\u7406\uff0c\u53ef\u4ee5\u5199\u5165\u6570\u636e\u5e93\u7b49\u7b49<\/span>}<span style=\"color: #75715e;line-height: 26px;\">\/\/\u6240\u6709\u7684\u6570\u636e\u89e3\u6790\u5b8c\u4e86\u8c03\u7528<\/span><span style=\"color: #75715e;line-height: 26px;\">@Override<\/span><span style=\"line-height: 26px;\"><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">void<\/span><span style=\"color: #a6e22e;font-weight: bold;line-height: 26px;\">doAfterAllAnalysed<\/span><span style=\"line-height: 26px;\">(AnalysisContextcontext)<\/span><\/span>{log.info(<span style=\"color: #a6e22e;line-height: 26px;\">\"\u6240\u6709\u6570\u636e\u89e3\u6790\u5b8c\u6210\"<\/span>);}}<\/code><\/pre>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: black;font-size: 17px;font-weight: bold;text-align: center;margin-top: 20px;margin-bottom: 20px;\"><span style=\"display: none;\"><\/span><span style=\"border-bottom: 2px solid RGBA(79, 177, 249, .65);color: #2b2b2b;padding-bottom: 2px;\"><span style=\"width: 30px;height: 30px;display: block;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164607165.png');background-position: center center;background-size: 30px;margin: auto auto -8px;opacity: 1;background-repeat: no-repeat;\"><\/span>\u4e09\u3001\u6d4b\u8bd5\u7ed3\u679c<\/span><span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;margin-top: 10px;margin-bottom: 10px;font-size: 14px;word-spacing: 2px;\">\u8bbf\u95ee<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;font-size: 15px;color: #595959;list-style-type: circle;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;font-size: 14px;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: rgb(43, 43, 43);margin-top: 10px;margin-bottom: 10px;word-spacing: 2px;\">localhost:8086\/user\/v1\/importExcel<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;font-size: 14px;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: rgb(43, 43, 43);margin-top: 10px;margin-bottom: 10px;word-spacing: 2px;\">localhost:8086\/user\/v2\/importExcel<\/p>\n<\/section>\n<\/li>\n<\/ul>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;margin-top: 10px;margin-bottom: 10px;font-size: 14px;word-spacing: 2px;\">\u7ed3\u679c<\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.562037037037037\" data-type=\"png\" data-w=\"1080\" style=\"border-radius: 6px;display: block;margin: 20px auto;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;height: auto !important;\"  data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164612285.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.562037037037037\" data-type=\"png\" data-w=\"1080\" style=\"border-radius: 6px;display: block;margin: 20px auto;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;height: auto !important;\"  src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164612285.png\"  \/><\/noscript><\/figure>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.575925925925926\" data-type=\"png\" data-w=\"1080\" style=\"border-radius: 6px;display: block;margin: 20px auto;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;height: auto !important;\"  data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164615583.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.575925925925926\" data-type=\"png\" data-w=\"1080\" style=\"border-radius: 6px;display: block;margin: 20px auto;object-fit: contain;box-shadow: rgb(153, 153, 153) 2px 4px 7px;height: auto !important;\"  src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164615583.png\"  \/><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;margin-top: 10px;margin-bottom: 10px;font-size: 14px;word-spacing: 2px;\">\u53d1\u73b0\u6d4b\u8bd5\u7ed3\u679c\u4e00\u81f4\uff0c\u540e\u7eed\u5199\u4ee3\u7801\u7684\u65f6\u5019\uff0c\u9664\u4e86\u505a\u529f\u80fd\uff0c\u5e94\u8be5\u8981\u8003\u8651\u4ee3\u7801\u7684\u6269\u5c55\u6027\uff0c\u4e0d\u7136\u4ea7\u54c1\u8bf4\u52a0\u4e2a\u529f\u80fd\uff0c\u6211\u4eec\u53c8\u5f97\u542d\u54e7\u542d\u54e7\u5199\u4ee3\u7801\uff0c\u90a3\u8fd9\u6837\u4e5f\u662f\u592a\u7d2f\u4e86\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;margin-top: 10px;margin-bottom: 10px;font-size: 14px;word-spacing: 2px;\">\u4ee3\u7801\u4e0b\u8f7d\u5730\u5740\uff1a<\/p>\n<blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 0.9em;overflow: auto;padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;text-size-adjust: 100%;line-height: 1.55em;border-radius: 6px;color: rgb(89, 89, 89);box-sizing: inherit;border-width: 1px;border-top-style: solid;border-right-style: solid;border-bottom-style: solid;border-color: rgba(64, 184, 250, 0.4);background: rgba(64, 184, 250, 0.1);\"><p><span style=\"color: RGBA(64, 184, 250, .5);font-size: 34px;line-height: 1;font-weight: 700;\">\u275d<\/span><\/p>\n<ul style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;font-size: 15px;list-style-type: circle;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;font-size: 14px;\">https:\/\/gitee.com\/jike11231\/mybatis-plus-demo-test.git<\/section>\n<\/li>\n<\/ul>\n<p><span style=\"float: right;color: RGBA(64, 184, 250, .5);\">\u275e<\/span><\/p><\/blockquote>\n<\/section>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"margin-bottom: 0px;padding-right: 10px;padding-left: 10px;outline: 0px;white-space: normal;color: black;font-size: 16px;letter-spacing: 0px;text-align: left;background-color: rgb(255, 255, 255);line-height: 1.6;word-break: break-word;font-family: PingFangSC-Light;\">\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"outline: 0px;font-family: -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;text-align: right;\"><em style=\"outline: 0px;color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;\">\u6765\u6e90\uff1ablog.csdn.net\/jike11231\/<\/em><\/h3>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"outline: 0px;font-family: -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;text-align: right;\"><em style=\"outline: 0px;color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;\">article\/details\/123994833<\/em><\/h3>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"outline: 0px;font-family: -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;text-align: right;\"><em style=\"outline: 0px;color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;\"><\/em><\/h3>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"outline: 0px;font-family: -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;text-align: right;\"><em style=\"outline: 0px;color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;\"><\/em><\/h3>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"outline: 0px;font-family: -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;text-align: right;\"><em style=\"outline: 0px;color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;\"><\/em><\/h3>\n<p style=\"outline: 0px;\"><em style=\"outline: 0px;color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;\"><\/em><\/p>\n<\/section>\n<section style=\"margin-bottom: 0px;outline: 0px;letter-spacing: 0.544px;white-space: normal;color: rgb(0, 0, 0);font-size: 16px;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, Arial, sans-serif;text-align: center;widows: 1;caret-color: rgb(60, 60, 60);background-color: rgb(255, 255, 255);\"><span style=\"outline: 0px;font-size: 20px;color: rgb(255, 0, 0);\"><strong style=\"outline: 0px;\">\u540e\u7aef\u4e13\u5c5e\u6280\u672f\u7fa4<\/strong><\/span><\/section>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;outline: 0px;white-space: normal;color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: normal;text-align: center;widows: 1;caret-color: rgb(60, 60, 60);background-color: rgb(255, 255, 255);line-height: 26px;visibility: visible;\">\u6784\u5efa\u9ad8\u8d28\u91cf\u7684\u6280\u672f\u4ea4\u6d41\u793e\u7fa4\uff0c\u6b22\u8fce\u4ece\u4e8b\u7f16\u7a0b\u5f00\u53d1\u3001\u6280\u672f\u62db\u8058HR\u8fdb\u7fa4\uff0c\u4e5f\u6b22\u8fce\u5927\u5bb6\u5206\u4eab\u81ea\u5df1\u516c\u53f8\u7684\u5185\u63a8\u4fe1\u606f\uff0c\u76f8\u4e92\u5e2e\u52a9\uff0c\u4e00\u8d77\u8fdb\u6b65\uff01<\/p>\n<blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 20px;margin-bottom: 20px;padding: 10px 10px 10px 1em;outline: 0px;border-left-width: 2px;border-left-color: rgb(136, 136, 136);color: rgb(119, 119, 119);font-size: 0.9em;white-space: normal;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: normal;text-align: left;widows: 1;caret-color: rgb(60, 60, 60);border-top: none;border-bottom: none;overflow: auto;background: rgba(0, 0, 0, 0.05);border-right: 2px solid rgb(136, 136, 136);visibility: visible;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;outline: 0px;font-size: 16px;text-align: justify;color: black;line-height: 26px;visibility: visible;\">\u6587\u660e\u53d1\u8a00\uff0c\u4ee5<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(0, 150, 136);visibility: visible;\">\u4ea4\u6d41\u6280\u672f<\/code>\u3001<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(0, 150, 136);visibility: visible;\">\u804c\u4f4d\u5185\u63a8<\/code>\u3001<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(0, 150, 136);visibility: visible;\">\u884c\u4e1a\u63a2\u8ba8<\/code>\u4e3a\u4e3b<\/p>\n<\/blockquote>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;outline: 0px;white-space: normal;color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: normal;text-align: center;widows: 1;caret-color: rgb(60, 60, 60);background-color: rgb(255, 255, 255);line-height: 26px;visibility: visible;\">\u5e7f\u544a\u4eba\u58eb\u52ff\u5165\uff0c\u5207\u52ff\u8f7b\u4fe1\u79c1\u804a\uff0c\u9632\u6b62\u88ab\u9a97<\/p>\n<p style=\"outline: 0px;font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-ratio=\"1.0212201591511936\" data-s=\"300,640\" data-type=\"png\" data-w=\"377\" style=\"outline: 0px;visibility: visible !important;width: 191px !important;height: auto !important;\"  data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164619398.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"1.0212201591511936\" data-s=\"300,640\" data-type=\"png\" data-w=\"377\" style=\"outline: 0px;visibility: visible !important;width: 191px !important;height: auto !important;\"  src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164619398.png\"  \/><\/noscript><\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;white-space: normal;color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: normal;text-align: left;widows: 1;caret-color: rgb(60, 60, 60);background-color: rgb(255, 255, 255);display: flex;flex-direction: column;justify-content: center;align-items: center;visibility: visible;\"><figcaption style=\"margin-top: 5px;outline: 0px;text-align: center;color: rgb(136, 136, 136);font-size: 14px;visibility: visible;\">\u52a0\u6211\u597d\u53cb\uff0c\u62c9\u4f60\u8fdb\u7fa4<\/figcaption><\/figure>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 Java\u7b14\u8bb0\u867e              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u4ea7\u54c1\u9700\u6c42: excel\u6570\u636e\u6a21\u677f\u4e0b\u8f7d excel\u6570\u636e\u5bfc\u5165 \u5bfc\u5165\u5f97\u65f6\u5019\u6839\u636e\u6a21\u677f\u5f97\u6821\u9a8c\u89c4\u5219\u6765\u8fdb\u884c\u7b5b\u9009\uff0c\u5bfc\u5165\u6210\u529f\u7684\u8fd4\u56de\u6210\u529f\u5217\u8868\uff0c\u6570\u636e\u6709 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":3171,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-3176","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164609513-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164612285.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164609513-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164609513.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164612285.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164609513-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164609513.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164609513.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164612285.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164612285.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164615583.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164615583.png","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164619398.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102164619398.png","id":"image5"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Java","post_date":"2023-11-02","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":467,"next_post_id":3168,"next_post_title":"Java8 Stream \u4e00\u884c\u4ee3\u7801\u5b9e\u73b0\u6570\u636e\u5206\u7ec4\u7edf\u8ba1\u3001\u6392\u5e8f\u3001\u6700\u5927\u503c\u3001\u6700\u5c0f\u503c\u3001\u5e73\u5747\u503c\u3001\u603b\u6570\u3001\u5408\u8ba1","previous_post_id":3489,"previous_post_title":"\u4e00\u6b3e\u5f3a\u5927\u7684\u5728\u7ebfAPI\u5de5\u5177","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=3176"}],"version-history":[{"count":1,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3176\/revisions"}],"predecessor-version":[{"id":3629,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3176\/revisions\/3629"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/3171"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=3176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=3176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=3176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}