{"id":4373,"date":"2019-03-28T08:48:55","date_gmt":"2019-03-28T00:48:55","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/spring-boot%e5%ae%9e%e7%8e%b0%e6%96%87%e4%bb%b6%e4%b8%8a%e4%bc%a0%e4%b8%8e%e4%b8%8b%e8%bd%bd\/"},"modified":"2019-03-28T08:48:55","modified_gmt":"2019-03-28T00:48:55","slug":"spring-boot%e5%ae%9e%e7%8e%b0%e6%96%87%e4%bb%b6%e4%b8%8a%e4%bc%a0%e4%b8%8e%e4%b8%8b%e8%bd%bd","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/spring-boot%e5%ae%9e%e7%8e%b0%e6%96%87%e4%bb%b6%e4%b8%8a%e4%bc%a0%e4%b8%8e%e4%b8%8b%e8%bd%bd\/","title":{"rendered":"Spring Boot\u5b9e\u73b0\u6587\u4ef6\u4e0a\u4f20\u4e0e\u4e0b\u8f7d"},"content":{"rendered":"<div class='wxsyncmain'>\n<h1 cid=\"n0\" mdtype=\"heading\" class=\"\" style=\"margin-top: 1rem;margin-bottom: 1rem;padding-bottom: 0.3em;font-weight: bold;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);line-height: 1.2;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(178, 178, 178);box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u5982\u679c\u6559\u7a0b\u4e2d\u4ee3\u7801\u4e0d\u4fbf\u4e8e\u9605\u8bfb\uff0c\u8bf7\u4f7f\u7528\u7535\u8111\u67e5\u770b\u6216\u70b9\u51fb\u9605\u8bfb\u539f\u6587\u3002<\/span><\/h1>\n<p><span style=\"max-width: 100%;color: rgb(178, 178, 178);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><\/span><\/p>\n<h1 cid=\"n56\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 2.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.2;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\">0. \u5f00\u53d1\u73af\u5883<\/h1>\n<ul class=\"ul-list list-paddingleft-2\" cid=\"n58\" mdtype=\"list\" data-mark=\"-\" style=\"\">\n<li>\n<p cid=\"n60\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-bottom: 0.5rem;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">IDE\uff1aIntelliJ IDEA 2017.1 x64<\/span><\/p>\n<\/li>\n<li>\n<p cid=\"n62\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-bottom: 0.5rem;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">jdk\uff1a1.8.0_91<\/span><\/p>\n<\/li>\n<li>\n<p cid=\"n64\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-bottom: 0.5rem;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">Spring Boot\uff1a2.1.1.RELEASE<\/span><\/p>\n<p cid=\"n65\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.5rem;margin-bottom: 0.5rem;white-space: pre-wrap;\">\n<\/li>\n<\/ul>\n<h1 cid=\"n66\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 2.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.2;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">1. \u6587\u4ef6\u4e0b\u8f7d<\/span><\/h1>\n<h2 class=\"md-end-block md-heading\" mdtype=\"heading\" cid=\"n67\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">1.1 \u65b0\u5efa\u670d\u52a1\u7c7b<\/span><\/h2>\n<pre spellcheck=\"false\" class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" lang=\"java\" cid=\"n68\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">boot<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">GlobalException<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">stereotype<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Service<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">javax<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">servlet<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">http<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">HttpServletResponse<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">java<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">io<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">BufferedInputStream<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">java<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">io<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">File<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">java<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">io<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">FileInputStream<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">java<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">io<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">OutputStream<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Service<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">class<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">LogService<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">void<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logDownload<\/span>(<span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>, <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">HttpServletResponse<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">response<\/span>) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throws<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Exception<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">File<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">file<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">File<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"logs\"<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">+<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">File<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">separator<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">+<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">if<\/span> (<span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">!<\/span><span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">file<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">exists<\/span>()) {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throw<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">GlobalException<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">+<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\u6587\u4ef6\u4e0d\u5b58\u5728\"<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">     }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">response<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">setContentType<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"application\/force-download\"<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">response<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">addHeader<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"Content-Disposition\"<\/span>, <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"attachment;fileName=\"<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">+<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">byte<\/span>[] <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">buffer<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">byte<\/span>[<span class=\"cm-number\" style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">1024<\/span>];<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">FileInputStream<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">fis<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-atom\" style=\"box-sizing: border-box;color: rgb(34, 17, 153);\">null<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">BufferedInputStream<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bis<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-atom\" style=\"box-sizing: border-box;color: rgb(34, 17, 153);\">null<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">try<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">fis<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">FileInputStream<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">file<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bis<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">BufferedInputStream<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">fis<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">OutputStream<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">os<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">response<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">getOutputStream<\/span>();<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">i<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bis<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">read<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">buffer<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">while<\/span> (<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">i<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">!=<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">-<\/span><span class=\"cm-number\" style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">1<\/span>) {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">        <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">os<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">write<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">buffer<\/span>, <span class=\"cm-number\" style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">0<\/span>, <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">i<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">        <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">i<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bis<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">read<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">buffer<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">       }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">     } <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">finally<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">if<\/span> (<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bis<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">!=<\/span> <span class=\"cm-atom\" style=\"box-sizing: border-box;color: rgb(34, 17, 153);\">null<\/span>) {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">        <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bis<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">close<\/span>();<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">       }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">if<\/span> (<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">fis<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">!=<\/span> <span class=\"cm-atom\" style=\"box-sizing: border-box;color: rgb(34, 17, 153);\">null<\/span>) {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">        <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">fis<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">close<\/span>();<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">       }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">     }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<h2 class=\"md-end-block md-heading\" mdtype=\"heading\" cid=\"n72\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">1.2 \u65b0\u5efa\u63a7\u5236\u5668\u7c7b<\/span><\/h2>\n<pre spellcheck=\"false\" class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" lang=\"java\" cid=\"n74\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">service<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">LogService<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">beans<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">factory<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Autowired<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">context<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Scope<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">GetMapping<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">PathVariable<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">RequestMapping<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">RestController<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">javax<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">servlet<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">http<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">HttpServletResponse<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RestController<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Scope<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"prototype\"<\/span>)<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RequestMapping<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\/log\"<\/span>)<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">class<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">LogController<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Autowired<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">private<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">LogService<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logService<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">\/**<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">* \u4e0b\u8f7d\u65e5\u5fd7\u63a5\u53e3<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">*<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">* @param name<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">* @param response<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">* @throws Exception<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">*\/<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@GetMapping<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">value<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\/download\/{name}\"<\/span>)<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">void<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logDownload<\/span>(<span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@PathVariable<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>, <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">HttpServletResponse<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">response<\/span>) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throws<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Exception<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logService<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logDownload<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>, <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">response<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<h2 class=\"md-end-block md-heading\" mdtype=\"heading\" cid=\"n76\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">1.3 \u6d4b\u8bd5<\/span><\/h2>\n<p cid=\"n78\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">\u4e0a\u9762\u63a5\u53e3\u662f\u8981\u4e0b\u8f7dlogs\u6587\u4ef6\u5939\u4e0b\u65e5\u5fd7\u6587\u4ef6\uff0c\u4ee5log_20190218.log\u65e5\u5fd7\u6587\u4ef6\u4e3a\u4f8b\uff0c\u6d4f\u89c8\u5668\u76f4\u63a5\u8bbf\u95ee <\/span><span md-inline=\"url\" class=\"md-link\" spellcheck=\"false\" style=\"box-sizing: border-box;word-break: break-all;\">http:\/\/127.0.0.1:8090\/springbootdemo\/log\/download\/log_20190218.log<\/span><span md-inline=\"plain\" style=\"box-sizing: border-box;\"> \u5373\u53ef\u5b8c\u6210\u4e0b\u8f7d\u3002<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages lazyload\" data-copyright=\"0\" data-ratio=\"0.7471428571428571\" data-s=\"300,640\"  data-type=\"png\" data-w=\"700\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153226550.jpg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages\" data-copyright=\"0\" data-ratio=\"0.7471428571428571\" data-s=\"300,640\"  data-type=\"png\" data-w=\"700\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153226550.jpg\"  \/><\/noscript><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages lazyload\" data-copyright=\"0\" data-ratio=\"0.23769338959212377\" data-s=\"300,640\"  data-type=\"png\" data-w=\"711\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153228924.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages\" data-copyright=\"0\" data-ratio=\"0.23769338959212377\" data-s=\"300,640\"  data-type=\"png\" data-w=\"711\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153228924.png\"  \/><\/noscript><\/p>\n<p style=\"text-align: center;\">\n<h1 cid=\"n180\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 2.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.2;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">2. \u5355\u6587\u4ef6\u4e0a\u4f20<\/span><\/h1>\n<h2 class=\"md-end-block md-heading\" mdtype=\"heading\" cid=\"n90\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">2.1 \u65b0\u5efa\u670d\u52a1\u7c7b<\/span><\/h2>\n<pre spellcheck=\"false\" class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" lang=\"java\" cid=\"n92\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">boot<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">GlobalException<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">model<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">ReturnMessage<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">com<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">alibaba<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">fastjson<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">JSONObject<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">stereotype<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Service<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">multipart<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MultipartFile<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">javax<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">servlet<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">http<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">HttpServletResponse<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">java<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">io<\/span>.<span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">*<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Service<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">class<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">LogService<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">JSONObject<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logUpload<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MultipartFile<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">file<\/span>) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throws<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Exception<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">if<\/span> (<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">file<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">==<\/span> <span class=\"cm-atom\" style=\"box-sizing: border-box;color: rgb(34, 17, 153);\">null<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">||<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">file<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">isEmpty<\/span>()) {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throw<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">GlobalException<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\u672a\u9009\u62e9\u9700\u4e0a\u4f20\u7684\u65e5\u5fd7\u6587\u4ef6\"<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">     }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">filePath<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">File<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"logs_app\"<\/span>).<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">getAbsolutePath<\/span>();<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">File<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">fileUpload<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">File<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">filePath<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">if<\/span> (<span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">!<\/span><span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">fileUpload<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">exists<\/span>()) {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">fileUpload<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">mkdirs<\/span>();<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">     }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">fileUpload<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">File<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">filePath<\/span>, <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">file<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">getOriginalFilename<\/span>());<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">if<\/span> (<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">fileUpload<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">exists<\/span>()) {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throw<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">GlobalException<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\u4e0a\u4f20\u7684\u65e5\u5fd7\u6587\u4ef6\u5df2\u5b58\u5728\"<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">     }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">try<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">file<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">transferTo<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">fileUpload<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">ReturnMessage<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">success<\/span>();<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">     } <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">catch<\/span> (<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">IOException<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">e<\/span>) {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throw<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">GlobalException<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\u4e0a\u4f20\u65e5\u5fd7\u6587\u4ef6\u5230\u670d\u52a1\u5668\u5931\u8d25\uff1a\"<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">+<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">e<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">toString<\/span>());<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">     }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<h2 class=\"md-end-block md-heading\" mdtype=\"heading\" cid=\"n94\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">2.2 \u65b0\u5efa\u63a7\u5236\u5668\u7c7b<\/span><\/h2>\n<pre spellcheck=\"false\" class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" lang=\"java\" cid=\"n96\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">service<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">LogService<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">com<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">alibaba<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">fastjson<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">JSONObject<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">beans<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">factory<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Autowired<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">context<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Scope<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">*<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">multipart<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MultipartFile<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">javax<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">servlet<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">http<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">HttpServletResponse<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RestController<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Scope<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"prototype\"<\/span>)<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RequestMapping<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\/log\"<\/span>)<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">class<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">LogController<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Autowired<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">private<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">LogService<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logService<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">\/**<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">* \u4e0a\u4f20\u65e5\u5fd7\u63a5\u53e3<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">*<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">* @param file<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">* @return<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">* @throws Exception<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">*\/<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@PostMapping<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">value<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\/upload\"<\/span>)<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">JSONObject<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logUpload<\/span>(<span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RequestParam<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"file\"<\/span>) <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MultipartFile<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">file<\/span>) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throws<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Exception<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logService<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logUpload<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">file<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<h2 cid=\"n98\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">2.3 \u65b0\u5efaHTML\u9875\u9762<\/span><\/h2>\n<p cid=\"n107\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">log-upload.html<\/span><\/p>\n<pre spellcheck=\"false\" class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" lang=\"html\" cid=\"n102\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">&lt;!DOCTYPE html&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">html<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">lang<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"en\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">head<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">meta<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">charset<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"UTF-8\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">title<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>\u6587\u4ef6\u4e0a\u4f20<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">title<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">head<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">body<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">form<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">method<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"post\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">action<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\/log\/upload\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">enctype<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"multipart\/form-data\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">input<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">type<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"file\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">name<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"file\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">br<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">br<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">input<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">type<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"submit\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">value<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\u63d0\u4ea4\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">form<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">body<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">html<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><\/pre>\n<h2 class=\"md-end-block md-heading\" mdtype=\"heading\" cid=\"n103\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">2.4 \u6d4b\u8bd5<\/span><\/h2>\n<p cid=\"n105\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">\u6d4f\u89c8\u5668\u6253\u5f00\u9875\u9762 <\/span><span md-inline=\"url\" class=\"md-link\" spellcheck=\"false\" style=\"box-sizing: border-box;word-break: break-all;\">http:\/\/127.0.0.1:8090\/springbootdemo\/log-upload.html<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages lazyload\" data-copyright=\"0\" data-ratio=\"0.31438127090301005\" data-s=\"300,640\"  data-type=\"png\" data-w=\"598\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153231103.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages\" data-copyright=\"0\" data-ratio=\"0.31438127090301005\" data-s=\"300,640\"  data-type=\"png\" data-w=\"598\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153231103.png\"  \/><\/noscript><\/p>\n<p cid=\"n111\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">\u70b9\u51fb\u9009\u62e9\u6587\u4ef6\u6253\u5f00\u6587\u4ef6\u9009\u62e9\u9875\u9762\uff0c\u9009\u4e2d\u9700\u8981\u4e0a\u4f20\u7684\u6587\u4ef6\u540e\uff0c\u70b9\u51fb\u63d0\u4ea4\uff0c\u8fd4\u56de\u5982\u4e0b\u5219\u4e3a\u6587\u4ef6\u4e0a\u4f20\u6210\u529f\u3002<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages lazyload\" data-copyright=\"0\" data-ratio=\"0.2631578947368421\" data-s=\"300,640\"  data-type=\"png\" data-w=\"551\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153233439.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages\" data-copyright=\"0\" data-ratio=\"0.2631578947368421\" data-s=\"300,640\"  data-type=\"png\" data-w=\"551\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153233439.png\"  \/><\/noscript><\/p>\n<p cid=\"n116\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">\u6211\u4eec\u53bblogs_app\u6587\u4ef6\u5939\u4e0b\u67e5\u770b\uff0c\u751f\u6210\u4e86\u4e0a\u4f20\u7684\u65e5\u5fd7\u6587\u4ef6\u3002<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages lazyload\" data-copyright=\"0\" data-ratio=\"0.22865853658536586\" data-s=\"300,640\"  data-type=\"png\" data-w=\"328\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153236478.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages\" data-copyright=\"0\" data-ratio=\"0.22865853658536586\" data-s=\"300,640\"  data-type=\"png\" data-w=\"328\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153236478.png\"  \/><\/noscript><\/p>\n<h2 class=\"md-end-block md-heading\" mdtype=\"heading\" cid=\"n119\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">2.5 Java\u5ba2\u6237\u7aef\u4e0a\u4f20\u6587\u4ef6<\/span><\/h2>\n<p cid=\"n120\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u4e0a\u9762\u6211\u4eec\u4e0a\u4f20\u6587\u4ef6\u7684\u5ba2\u6237\u7aef\u4e3aHTML\u9875\u9762\uff0c\u4f46\u6211\u4eec\u5b9e\u9645\u751f\u4ea7\u4e2d\u672a\u5fc5\u662fWebAPP\uff0c\u8fd9\u65f6\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u6a21\u62df\u53d1\u9001\u6d4f\u89c8\u5668HTTP\u8bf7\u6c42\u6765\u5b9e\u73b0\u4e0a\u4f20\u6587\u4ef6\u3002<\/span><\/p>\n<h3 class=\"md-end-block md-heading\" mdtype=\"heading\" cid=\"n122\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">2.5.1 \u5f15\u5165\u4f9d\u8d56<\/span><\/h3>\n<pre spellcheck=\"false\" class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" lang=\"xml\" cid=\"n130\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">dependency<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">groupId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>commons-httpclient<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">groupId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">artifactId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>commons-httpclient<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">artifactId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">version<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>3.1<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">version<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">dependency<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><\/pre>\n<h3 cid=\"n132\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">2.5.2 \u65b0\u5efaJava\u5ba2\u6237\u7aef<\/span><\/h3>\n<pre spellcheck=\"false\" class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" lang=\"java\" cid=\"n124\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">apache<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">commons<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">httpclient<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">HttpClient<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">apache<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">commons<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">httpclient<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">methods<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">PostMethod<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">apache<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">commons<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">httpclient<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">methods<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">multipart<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">FilePart<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">apache<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">commons<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">httpclient<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">methods<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">multipart<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MultipartRequestEntity<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">apache<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">commons<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">httpclient<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">methods<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">multipart<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Part<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">apache<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">commons<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">httpclient<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">params<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">HttpMethodParams<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">junit<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Test<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">java<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">io<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">File<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">java<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">io<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">IOException<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">class<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">LogControllerTests<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Test<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">void<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logUpload<\/span>() <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throws<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Exception<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">url<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"http:\/\/127.0.0.1:8090\/springbootdemo\/log\/upload\"<\/span>;<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">pathname<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">File<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"logs\"<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">+<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">File<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">separator<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">+<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"log_20190310.log\"<\/span>).<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">getCanonicalPath<\/span>();<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logUpload<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">url<\/span>, <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">pathname<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">private<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">static<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">void<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logUpload<\/span>(<span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">url<\/span>, <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">pathname<\/span>) {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">HttpClient<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">httpClient<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">HttpClient<\/span>();<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">PostMethod<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">postMethod<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">PostMethod<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">url<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">try<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">FilePart<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">filePart<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">FilePart<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"file\"<\/span>, <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">File<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">pathname<\/span>));<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Part<\/span>[] <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">parts<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> {<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">filePart<\/span>};<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MultipartRequestEntity<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">multipartRequestEntity<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MultipartRequestEntity<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">parts<\/span>, <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">HttpMethodParams<\/span>());<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">postMethod<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">setRequestEntity<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">multipartRequestEntity<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">httpClient<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">executeMethod<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">postMethod<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">result<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">postMethod<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">getResponseBodyAsString<\/span>();<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">System<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">out<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">println<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">result<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">     } <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">catch<\/span> (<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">IOException<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">e<\/span>) {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">e<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">printStackTrace<\/span>();<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">     } <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">finally<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">postMethod<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">releaseConnection<\/span>();<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">     }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<p cid=\"n126\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">\u8fd9\u91cc\uff0c\u4ee5\u4e0b\u4e24\u884c\u4ee3\u7801\u8868\u793a\u8bbe\u7f6e\u591a\u5a92\u4f53\u53c2\u6570\uff0c\u4f5c\u7528\u7c7b\u4f3cform\u8868\u5355\u4e2d\u7684enctype=\"multipart\/form-data\"<\/span><\/p>\n<pre spellcheck=\"false\" class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" lang=\"java\" cid=\"n191\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MultipartRequestEntity<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">multipartRequestEntity<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MultipartRequestEntity<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">parts<\/span>, <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">HttpMethodParams<\/span>());<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">postMethod<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">setRequestEntity<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">multipartRequestEntity<\/span>);<\/span><\/pre>\n<p cid=\"n212\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">\u4ee5\u4e0b\u4e24\u884c\u4ee3\u7801\u8868\u793a\u8bbe\u5b9a\u53c2\u6570\u540d\u79f0\u548c\u503c\uff0c\u7c7b\u4f3cform\u8868\u5355\u4e2d\u7684&lt;input name=\"file\u201d type=\"file\" \/&gt;<\/span><\/p>\n<pre spellcheck=\"false\" class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" lang=\"java\" cid=\"n224\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">FilePart<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">filePart<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">FilePart<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"file\"<\/span>, <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">File<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">pathname<\/span>));<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Part<\/span>[] <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">parts<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> {<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">filePart<\/span>};<\/span><\/pre>\n<h3 cid=\"n188\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">2.5.3 \u6d4b\u8bd5<\/span><\/h3>\n<p cid=\"n139\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">\u6d4b\u8bd5\u7c7b\u8fd0\u884c\u6210\u529f\u3002<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages lazyload\" data-copyright=\"0\" data-ratio=\"0.25944841675178754\" data-s=\"300,640\"  data-type=\"png\" data-w=\"979\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153238786.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages\" data-copyright=\"0\" data-ratio=\"0.25944841675178754\" data-s=\"300,640\"  data-type=\"png\" data-w=\"979\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153238786.png\"  \/><\/noscript><\/p>\n<p cid=\"n144\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">\u6587\u4ef6\u4e0a\u4f20\u6210\u529f<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages lazyload\" data-copyright=\"0\" data-ratio=\"0.28955223880597014\" data-s=\"300,640\"  data-type=\"png\" data-w=\"335\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153241370.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages\" data-copyright=\"0\" data-ratio=\"0.28955223880597014\" data-s=\"300,640\"  data-type=\"png\" data-w=\"335\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153241370.png\"  \/><\/noscript><\/p>\n<p style=\"text-align: center;\">\n<h1 cid=\"n182\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 2.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.2;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">3. \u591a\u6587\u4ef6\u4e0a\u4f20<\/span><\/h1>\n<h2 class=\"md-end-block md-heading\" mdtype=\"heading\" cid=\"n147\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3.1 \u65b0\u5efa\u670d\u52a1\u7c7b<\/span><\/h2>\n<pre spellcheck=\"false\" class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" lang=\"java\" cid=\"n149\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">JSONObject<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">logUploads<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">HttpServletRequest<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">request<\/span>) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throws<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Exception<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">List<\/span><span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">&lt;<\/span><span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MultipartFile<\/span><span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">&gt;<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">files<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> ((<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MultipartHttpServletRequest<\/span>) <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">request<\/span>).<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">getFiles<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"file\"<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">for<\/span> (<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MultipartFile<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">file<\/span> : <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">files<\/span>) {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logUpload<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">file<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">     }<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">ReturnMessage<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">success<\/span>();<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   }<\/span><\/pre>\n<h2 cid=\"n151\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3.2 \u65b0\u5efa\u63a7\u5236\u5668\u7c7b<\/span><\/h2>\n<pre spellcheck=\"false\" class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" lang=\"java\" cid=\"n153\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">\/**<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">* \u6279\u91cf\u4e0a\u4f20\u65e5\u5fd7\u63a5\u53e3<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">*<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">* @param request<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">* @return<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">* @throws Exception<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">*\/<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@PostMapping<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">value<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\/uploads\"<\/span>)<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">JSONObject<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">logUploads<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">HttpServletRequest<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">request<\/span>) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throws<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Exception<\/span> {<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logService<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">logUploads<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">request<\/span>);<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   }<\/span><\/pre>\n<h2 class=\"md-end-block md-heading\" mdtype=\"heading\" cid=\"n155\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3.3 \u65b0\u5efaHTML\u9875\u9762<\/span><\/h2>\n<p cid=\"n161\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">log-uploads.html<\/span><\/p>\n<pre spellcheck=\"false\" class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" lang=\"html\" cid=\"n157\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;\"><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">&lt;!DOCTYPE html&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">html<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">lang<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"en\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">head<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">meta<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">charset<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"UTF-8\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">title<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>\u6279\u91cf\u6587\u4ef6\u4e0a\u4f20<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">title<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">head<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">body<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">form<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">method<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"post\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">action<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"log\/uploads\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">enctype<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"multipart\/form-data\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">input<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">type<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"file\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">name<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"file\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">br<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">input<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">type<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"file\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">name<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"file\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">br<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">input<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">type<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"file\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">name<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"file\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">br<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">br<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">input<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">type<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"submit\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">value<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\u63d0\u4ea4\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">form<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">body<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">html<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><\/pre>\n<h2 class=\"md-end-block md-heading\" mdtype=\"heading\" cid=\"n159\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3.4 \u6d4b\u8bd5<\/span><\/h2>\n<p cid=\"n162\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u6211\u4eec\u5148\u628a\u4e4b\u524d\u6d4b\u8bd5\u4e0a\u4f20\u7684logs_app\u6587\u4ef6\u5939\u6574\u4e2a\u5220\u9664\uff0c\u7136\u540e\u6d4f\u89c8\u5668\u6253\u5f00\u9875\u9762 <\/span><span md-inline=\"url\" class=\"md-link\" spellcheck=\"false\" style=\"box-sizing: border-box;word-break: break-all;\">http:\/\/127.0.0.1:8090\/springbootdemo\/log-uploads.html<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages lazyload\" data-copyright=\"0\" data-ratio=\"0.3311897106109325\" data-s=\"300,640\"  data-type=\"png\" data-w=\"622\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153244968.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages\" data-copyright=\"0\" data-ratio=\"0.3311897106109325\" data-s=\"300,640\"  data-type=\"png\" data-w=\"622\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153244968.png\"  \/><\/noscript><\/p>\n<p cid=\"n166\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u9009\u62e9\u8981\u4e0a\u4f20\u7684\u6587\u4ef6<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages lazyload\" data-copyright=\"0\" data-ratio=\"0.36551724137931035\" data-s=\"300,640\"  data-type=\"png\" data-w=\"580\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153246113.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages\" data-copyright=\"0\" data-ratio=\"0.36551724137931035\" data-s=\"300,640\"  data-type=\"png\" data-w=\"580\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153246113.png\"  \/><\/noscript><\/p>\n<p cid=\"n169\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u70b9\u51fb\u63d0\u4ea4\uff0c\u8fd4\u56de\u5982\u4e0b\u5219\u4e3a\u4e0a\u4f20\u6210\u529f\u3002<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages lazyload\" data-copyright=\"0\" data-ratio=\"0.2660377358490566\" data-s=\"300,640\"  data-type=\"png\" data-w=\"530\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153249244.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages\" data-copyright=\"0\" data-ratio=\"0.2660377358490566\" data-s=\"300,640\"  data-type=\"png\" data-w=\"530\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153249244.png\"  \/><\/noscript><\/p>\n<p cid=\"n173\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">\u6211\u4eec\u53bblogs_app\u6587\u4ef6\u5939\u4e0b\u67e5\u770b\uff0c\u751f\u6210\u4e86\u4e0a\u4f20\u7684\u65e5\u5fd7\u6587\u4ef6\u3002<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages lazyload\" data-copyright=\"0\" data-ratio=\"0.3554913294797688\" data-s=\"300,640\"  data-type=\"png\" data-w=\"346\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153251928.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages\" data-copyright=\"0\" data-ratio=\"0.3554913294797688\" data-s=\"300,640\"  data-type=\"png\" data-w=\"346\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153251928.png\"  \/><\/noscript><\/p>\n<h2 class=\"md-end-block md-heading\" mdtype=\"heading\" cid=\"n183\" style=\"box-sizing: border-box;break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3.5 Java\u5ba2\u6237\u7aef\u4e0a\u4f20\u6587\u4ef6<\/span><\/h2>\n<p cid=\"n271\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">\u8fd9\u91cc\u5982\u679c\u6211\u4eec\u4e5f\u9700\u8981Java\u5ba2\u6237\u7aef\u5b9e\u73b0\u591a\u6587\u4ef6\u4e0a\u4f20\uff0c\u53ef\u4ee5\u4eff\u71672.5\u5b9e\u73b0\u3002<\/span><\/p>\n<p cid=\"n271\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\"><\/span><\/p>\n<p cid=\"n271\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\"><\/span><\/p>\n<hr style=\"border-style: solid;border-width: 1px 0 0;border-color: rgba(0,0,0,0.1);-webkit-transform-origin: 0 0;-webkit-transform: scale(1, 0.5);transform-origin: 0 0;transform: scale(1, 0.5);\"  \/>\n<p cid=\"n271\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\">\n<p cid=\"n228\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">GitHub\uff1a<\/span><span md-inline=\"link\" class=\"md-link\" style=\"box-sizing: border-box;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">https:\/\/github.com\/dkbnull\/SpringBootDemo<\/span><\/span><\/p>\n<p cid=\"n234\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">CSDN\uff1a<\/span><span md-inline=\"link\" class=\"md-link\" style=\"box-sizing: border-box;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">https:\/\/blog.csdn.net\/dkbnull\/article\/details\/88858717<\/span><\/span><\/p>\n<p cid=\"n234\" mdtype=\"paragraph\" class=\"md-end-block\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;\">\n<hr style=\"border-style: solid;border-width: 1px 0 0;border-color: rgba(0,0,0,0.1);-webkit-transform-origin: 0 0;-webkit-transform: scale(1, 0.5);transform-origin: 0 0;transform: scale(1, 0.5);\"  \/>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 \u7a0b\u5e8f\u5458null              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u6559\u7a0b\u4e2d\u4ee3\u7801\u4e0d\u4fbf\u4e8e\u9605\u8bfb\uff0c\u8bf7\u4f7f\u7528\u7535\u8111\u67e5\u770b\u6216\u70b9\u51fb\u9605\u8bfb\u539f\u6587\u3002 0. \u5f00\u53d1\u73af\u5883 IDE\uff1aIntelliJ IDEA 2017.1 x64 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":4359,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-4373","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring-boot"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153221354-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153226550.jpg","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153221354-300x127.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153221354-1024x435.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153226550.jpg","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153221354-300x127.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153221354-1024x435.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153221354.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153226550.jpg","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153226550.jpg","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153228924.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153228924.png","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153231103.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153231103.png","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153233439.png","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153233439.png","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153236478.png","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153236478.png","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153238786.png","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153238786.png","id":"image11"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153241370.png","id":"image12"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153241370.png","id":"image13"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153244968.png","id":"image14"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153244968.png","id":"image15"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153246113.png","id":"image16"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153246113.png","id":"image17"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153249244.png","id":"image18"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153249244.png","id":"image19"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153251928.png","id":"image20"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153251928.png","id":"image21"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Spring Boot","post_date":"2019-03-28","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":273,"next_post_id":4358,"next_post_title":"Spring Boot \u6574\u5408Logback\u8bb0\u5f55\u65e5\u5fd7","previous_post_id":4377,"previous_post_title":"Spring Boot\u5165\u95e8\uff1a\u4f7f\u7528Schedule\u5b9e\u73b0\u5b9a\u65f6\u4efb\u52a1","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4373","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=4373"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4373\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/4359"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=4373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=4373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=4373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}