{"id":4358,"date":"2019-07-10T22:42:43","date_gmt":"2019-07-10T14:42:43","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/spring-boot-%e6%95%b4%e5%90%88logback%e8%ae%b0%e5%bd%95%e6%97%a5%e5%bf%97\/"},"modified":"2019-07-10T22:42:43","modified_gmt":"2019-07-10T14:42:43","slug":"spring-boot-%e6%95%b4%e5%90%88logback%e8%ae%b0%e5%bd%95%e6%97%a5%e5%bf%97","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/spring-boot-%e6%95%b4%e5%90%88logback%e8%ae%b0%e5%bd%95%e6%97%a5%e5%bf%97\/","title":{"rendered":"Spring Boot \u6574\u5408Logback\u8bb0\u5f55\u65e5\u5fd7"},"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<h1 cid=\"n0\" 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;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=\"md-plain md-expand\" style=\"box-sizing: border-box;\">0. \u5f00\u53d1\u73af\u5883<\/span><\/h1>\n<ul class=\"ul-list list-paddingleft-2\" cid=\"n2\" mdtype=\"list\" data-mark=\"-\" style=\"\">\n<li>\n<p cid=\"n4\" mdtype=\"paragraph\" class=\"md-end-block md-p\" style=\"box-sizing: border-box;orphans: 4;margin-bottom: 0.5rem;white-space: pre-wrap;\"><span md-inline=\"plain\" class=\"md-plain\" style=\"box-sizing: border-box;\">IDE\uff1aIntelliJ IDEA 2019.1.2<\/span><\/p>\n<\/li>\n<li>\n<p cid=\"n6\" mdtype=\"paragraph\" class=\"md-end-block md-p\" style=\"box-sizing: border-box;orphans: 4;margin-bottom: 0.5rem;white-space: pre-wrap;\"><span md-inline=\"plain\" class=\"md-plain\" style=\"box-sizing: border-box;\">JDK\uff1a1.8.0_211<\/span><\/p>\n<\/li>\n<li>\n<p cid=\"n8\" mdtype=\"paragraph\" class=\"md-end-block md-p\" style=\"box-sizing: border-box;orphans: 4;margin-bottom: 0.5rem;white-space: pre-wrap;\"><span md-inline=\"plain\" class=\"md-plain\" style=\"box-sizing: border-box;\">Spring Boot\uff1a2.1.1.RELEASE<\/span><\/p>\n<\/li>\n<\/ul>\n<h1 cid=\"n9\" 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;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=\"md-plain\" style=\"box-sizing: border-box;\">1. Logback\u7b80\u4ecb<\/span><\/h1>\n<p cid=\"n10\" mdtype=\"paragraph\" class=\"md-end-block md-p\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;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=\"md-plain\" style=\"box-sizing: border-box;\">Logback\u662f\u7531log4j\u521b\u59cb\u4eba\u8bbe\u8ba1\u7684\u53c8\u4e00\u4e2a\u5f00\u6e90\u65e5\u5fd7\u7ec4\u4ef6\u3002logback\u5f53\u524d\u5206\u6210\u4e09\u4e2a\u6a21\u5757\uff1alogback-core,logback- classic\u548clogback-access\u3002logback-core\u662f\u5176\u5b83\u4e24\u4e2a\u6a21\u5757\u7684\u57fa\u7840\u6a21\u5757\u3002logback-classic\u662flog4j\u7684\u4e00\u4e2a \u6539\u826f\u7248\u672c\u3002\u6b64\u5916logback-classic\u5b8c\u6574\u5b9e\u73b0SLF4J API\u4f7f\u4f60\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u66f4\u6362\u6210\u5176\u5b83\u65e5\u5fd7\u7cfb\u7edf\u5982log4j\u6216JDK14 Logging\u3002logback-access\u8bbf\u95ee\u6a21\u5757\u4e0eServlet\u5bb9\u5668\u96c6\u6210\u63d0\u4f9b\u901a\u8fc7Http\u6765\u8bbf\u95ee\u65e5\u5fd7\u7684\u529f\u80fd\u3002<\/span><\/p>\n<h1 cid=\"n11\" 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;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=\"md-plain\" style=\"box-sizing: border-box;\">2. Spring Boot\u96c6\u6210Logback<\/span><\/h1>\n<p cid=\"n12\" mdtype=\"paragraph\" class=\"md-end-block md-p\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;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=\"md-plain\" style=\"box-sizing: border-box;\">Spring Boot\u5185\u90e8\u96c6\u6210\u4e86LogBack\u65e5\u5fd7\u4f9d\u8d56\uff0c\u5e76\u4e14Spring Boot\u9ed8\u8ba4\u4f7f\u7528LogBack\u8bb0\u5f55\u65e5\u5fd7\u4fe1\u606f\uff0c\u9ed8\u8ba4\u6839\u636ebase.xml\u914d\u7f6e\u5185\u5bb9\u6765\u8f93\u51fa\u5230\u63a7\u5236\u53f0\u548c\u6587\u4ef6\u4e4b\u4e2d\u3002<\/span><\/p>\n<h2 cid=\"n13\" 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;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=\"md-plain\" style=\"box-sizing: border-box;\">2.1 \u65b0\u5efalogback-spring.xml<\/span><\/h2>\n<p cid=\"n14\" mdtype=\"paragraph\" class=\"md-end-block md-p\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;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=\"strong\" class=\"\" style=\"box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">resources\u76ee\u5f55\u4e0b\u65b0\u5efalogback-spring.xml<\/strong><\/span><\/p>\n<p cid=\"n15\" mdtype=\"paragraph\" class=\"md-end-block md-p\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;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=\"md-plain\" style=\"box-sizing: border-box;\">\u8fd9\u91cc\u4e5f\u53ef\u4ee5\u65b0\u5efalogback.xml\uff0c\u4f46\u662f\u5b98\u65b9\u63a8\u8350\u4f7f\u7528logback-spring.xml\uff0c\u56e0\u4e3a\u5e26spring\u540e\u7f00\u7684xml\u6587\u4ef6\u53ef\u4ee5\u4f7f\u7528<\/span><span md-inline=\"tag\" class=\"md-tag md-raw-inline\" spellcheck=\"false\" style=\"box-sizing: border-box;font-family: var(--monospace);opacity: 1;color: rgb(167, 167, 167);\">&lt;springProfile&gt;<\/span><span md-inline=\"plain\" class=\"md-plain\" style=\"box-sizing: border-box;\">\u6807\u7b7e\u3002<\/span><\/p>\n<pre spellcheck=\"false\" class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" lang=\"xml\" cid=\"n16\" 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;?xml<\/span> <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">version=\"1.0\" encoding=\"UTF-8\"?&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);\">configuration<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">debug<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"false\"<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u65e5\u5fd7\u6587\u4ef6\u7684\u5b58\u50a8\u4f4d\u7f6e--&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);\">property<\/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);\">\"LOG_HOME\"<\/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);\">\".\/logs\"<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u63a7\u5236\u53f0\u8f93\u51fa--&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);\">appender<\/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);\">\"CONSOLE\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">class<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"ch.qos.logback.core.ConsoleAppender\"<\/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);\">encoder<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">class<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"ch.qos.logback.classic.encoder.PatternLayoutEncoder\"<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u683c\u5f0f\u5316\u65e5\u5fd7\u8f93\u51fa\uff1a%d\u8868\u793a\u65e5\u671f\uff1b%thread\u8868\u793a\u7ebf\u7a0b\u540d\uff1b%-5level\u8868\u793a\u65e5\u5fd7\u7ea7\u522b\uff0c\u4e14\u4ece\u5de6\u663e\u793a5\u4e2a\u5b57\u7b26\u5bbd\u5ea6\uff1b<\/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);\">%logger\u8868\u793a\u65e5\u5fd7\u8f93\u51fa\u4f4d\u7f6e\uff1b%msg\u8868\u793a\u65e5\u5fd7\u5185\u5bb9\uff1b%n\u8868\u793a\u6362\u884c\u7b26--&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);\">pattern<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg %n<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);\">pattern<\/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);\">charset<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>UTF-8<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);\">charset<\/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);\">encoder<\/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);\">appender<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u65e5\u5fd7\u6587\u4ef6\u8f93\u51fa--&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);\">appender<\/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);\">\"LOG_INFO\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">class<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"ch.qos.logback.core.rolling.RollingFileAppender\"<\/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);\">rollingPolicy<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">class<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"ch.qos.logback.core.rolling.TimeBasedRollingPolicy\"<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u65e5\u5fd7\u6587\u4ef6\u8f93\u51fa\u7684\u6587\u4ef6\u540d--&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);\">FileNamePattern<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>${LOG_HOME}\/log_%d{yyyy-MM-dd}.log<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);\">FileNamePattern<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u65e5\u5fd7\u4fdd\u7559\u5929\u6570--&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);\">MaxHistory<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>180<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);\">MaxHistory<\/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);\">rollingPolicy<\/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);\">encoder<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">class<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"ch.qos.logback.classic.encoder.PatternLayoutEncoder\"<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u683c\u5f0f\u5316\u65e5\u5fd7\u8f93\u51fa\uff1a%d\u8868\u793a\u65e5\u671f\uff1b%thread\u8868\u793a\u7ebf\u7a0b\u540d\uff1b%-5level\u8868\u793a\u65e5\u5fd7\u7ea7\u522b\uff0c\u4e14\u4ece\u5de6\u663e\u793a5\u4e2a\u5b57\u7b26\u5bbd\u5ea6\uff1b<\/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);\">%logger\u8868\u793a\u65e5\u5fd7\u8f93\u51fa\u4f4d\u7f6e\uff1b%msg\u8868\u793a\u65e5\u5fd7\u5185\u5bb9\uff1b%n\u8868\u793a\u6362\u884c\u7b26--&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);\">pattern<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg %n<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);\">pattern<\/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);\">encoder<\/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);\">triggeringPolicy<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">class<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy\"<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u65e5\u5fd7\u6587\u4ef6\u6700\u5927\u5927\u5c0f--&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);\">MaxFileSize<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>10MB<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);\">MaxFileSize<\/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);\">triggeringPolicy<\/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);\">appender<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u65e5\u5fd7\u8f93\u51fa\u7ea7\u522b--&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);\">root<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">level<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"INFO\"<\/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);\">appender-ref<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">ref<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"CONSOLE\"<\/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);\">appender-ref<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">ref<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"LOG_INFO\"<\/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);\">root<\/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);\">configuration<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><\/pre>\n<h2 cid=\"n17\" 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;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=\"md-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=\"n18\" 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);\">package<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">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);\">controller<\/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);\">util<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">LoggerUtils<\/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-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-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);\">GatewayController<\/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-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);\">\"\/gateway\"<\/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);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">gateway<\/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);\">LoggerUtils<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">info<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"Hello World\"<\/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);\">LoggerUtils<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">info<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"127.0.0.1\"<\/span>, <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\u524d\u53f0\u8bf7\u6c42\u4fe1\u606f\"<\/span>, <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\/gateway\"<\/span>, <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"Hello World\"<\/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-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"Hello World\"<\/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=\"n19\" 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;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=\"md-plain\" style=\"box-sizing: border-box;\">2.3 \u6d4b\u8bd5<\/span><\/h2>\n<p cid=\"n20\" mdtype=\"paragraph\" class=\"md-end-block md-p\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;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=\"md-plain\" style=\"box-sizing: border-box;\">\u8fd0\u884cSpring Boot\u7a0b\u5e8f\uff0c\u63a7\u5236\u53f0\u6253\u5370\u65e5\u5fd7\u5982\u4e0b<\/span><\/p>\n<pre spellcheck=\"false\" class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" lang=\"\" cid=\"n21\" 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;\">2019-07-10 22:24:54.277 [http-nio-8090-exec-1] INFO  cn.wbnull.springbootdemo.util.LoggerUtils - Hello World<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">2019-07-10 22:24:54.277 [http-nio-8090-exec-1] INFO  cn.wbnull.springbootdemo.util.LoggerUtils -<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">\u7ec8\u7aef\uff1a127.0.0.1<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">\u4f4d\u7f6e\uff1a\u524d\u53f0\u8bf7\u6c42\u4fe1\u606f<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">\u63a5\u53e3\uff1a\/gateway<\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">\u53c2\u6570\uff1aHello World<\/span><\/pre>\n<h1 cid=\"n22\" 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;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=\"md-plain\" style=\"box-sizing: border-box;\">3. \u5f69\u8272\u65e5\u5fd7<\/span><\/h1>\n<h2 cid=\"n23\" 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;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=\"md-plain\" style=\"box-sizing: border-box;\">3.1 \u4fee\u6539logback-spring.xml<\/span><\/h2>\n<pre spellcheck=\"false\" class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" lang=\"xml\" cid=\"n24\" 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;?xml<\/span> <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">version=\"1.0\" encoding=\"UTF-8\"?&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);\">configuration<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">debug<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"false\"<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u65e5\u5fd7\u6587\u4ef6\u7684\u5b58\u50a8\u4f4d\u7f6e--&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);\">property<\/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);\">\"LOG_HOME\"<\/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);\">\".\/logs\"<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u5f69\u8272\u65e5\u5fd7\u4f9d\u8d56\u7684\u6e32\u67d3\u7c7b--&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);\">conversionRule<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">conversionWord<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"clr\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">converterClass<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"org.springframework.boot.logging.logback.ColorConverter\"<\/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);\">conversionRule<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">conversionWord<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"wex\"<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">          <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">converterClass<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter\"<\/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);\">conversionRule<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">conversionWord<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"wEx\"<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">          <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">converterClass<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter\"<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u5f69\u8272\u65e5\u5fd7\u683c\u5f0f--&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);\">property<\/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);\">\"CONSOLE_LOG_PATTERN\"<\/span><\/span><span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">       <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);\">\"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}\"<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u63a7\u5236\u53f0\u8f93\u51fa--&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);\">appender<\/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);\">\"CONSOLE\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">class<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"ch.qos.logback.core.ConsoleAppender\"<\/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);\">encoder<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">class<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"ch.qos.logback.classic.encoder.PatternLayoutEncoder\"<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u683c\u5f0f\u5316\u65e5\u5fd7\u8f93\u51fa\uff1a%d\u8868\u793a\u65e5\u671f\uff1b%thread\u8868\u793a\u7ebf\u7a0b\u540d\uff1b%-5level\u8868\u793a\u65e5\u5fd7\u7ea7\u522b\uff0c\u4e14\u4ece\u5de6\u663e\u793a5\u4e2a\u5b57\u7b26\u5bbd\u5ea6\uff1b<\/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);\">%logger\u8868\u793a\u65e5\u5fd7\u8f93\u51fa\u4f4d\u7f6e\uff1b%msg\u8868\u793a\u65e5\u5fd7\u5185\u5bb9\uff1b%n\u8868\u793a\u6362\u884c\u7b26--&gt;<\/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);\">&lt;!--&lt;pattern&gt;%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg %n&lt;\/pattern&gt;--&gt;<\/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);\">&lt;!--\u5f69\u8272\u65e5\u5fd7--&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);\">Pattern<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>${CONSOLE_LOG_PATTERN}<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);\">Pattern<\/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);\">charset<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>UTF-8<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);\">charset<\/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);\">encoder<\/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);\">appender<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u65e5\u5fd7\u6587\u4ef6\u8f93\u51fa--&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);\">appender<\/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);\">\"LOG_INFO\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">class<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"ch.qos.logback.core.rolling.RollingFileAppender\"<\/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);\">rollingPolicy<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">class<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"ch.qos.logback.core.rolling.TimeBasedRollingPolicy\"<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u65e5\u5fd7\u6587\u4ef6\u8f93\u51fa\u7684\u6587\u4ef6\u540d--&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);\">FileNamePattern<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>${LOG_HOME}\/log_%d{yyyy-MM-dd}.log<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);\">FileNamePattern<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u65e5\u5fd7\u4fdd\u7559\u5929\u6570--&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);\">MaxHistory<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>180<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);\">MaxHistory<\/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);\">rollingPolicy<\/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);\">encoder<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">class<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"ch.qos.logback.classic.encoder.PatternLayoutEncoder\"<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u683c\u5f0f\u5316\u65e5\u5fd7\u8f93\u51fa\uff1a%d\u8868\u793a\u65e5\u671f\uff1b%thread\u8868\u793a\u7ebf\u7a0b\u540d\uff1b%-5level\u8868\u793a\u65e5\u5fd7\u7ea7\u522b\uff0c\u4e14\u4ece\u5de6\u663e\u793a5\u4e2a\u5b57\u7b26\u5bbd\u5ea6\uff1b<\/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);\">%logger\u8868\u793a\u65e5\u5fd7\u8f93\u51fa\u4f4d\u7f6e\uff1b%msg\u8868\u793a\u65e5\u5fd7\u5185\u5bb9\uff1b%n\u8868\u793a\u6362\u884c\u7b26--&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);\">pattern<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg %n<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);\">pattern<\/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);\">encoder<\/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);\">triggeringPolicy<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">class<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy\"<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u65e5\u5fd7\u6587\u4ef6\u6700\u5927\u5927\u5c0f--&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);\">MaxFileSize<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>10MB<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);\">MaxFileSize<\/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);\">triggeringPolicy<\/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);\">appender<\/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-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u65e5\u5fd7\u8f93\u51fa\u7ea7\u522b--&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);\">root<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">level<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"INFO\"<\/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);\">appender-ref<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">ref<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"CONSOLE\"<\/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);\">appender-ref<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">ref<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"LOG_INFO\"<\/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);\">root<\/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);\">configuration<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><\/pre>\n<h2 cid=\"n25\" 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;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=\"md-plain\" style=\"box-sizing: border-box;\">3.2 \u6d4b\u8bd5<\/span><\/h2>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages lazyload\" data-ratio=\"0.1140625\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1280\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153146974.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-ratio=\"0.1140625\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1280\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153146974.jpg\"  \/><\/noscript><\/p>\n<p cid=\"n28\" mdtype=\"paragraph\" class=\"md-end-block md-p\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;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=\"box-sizing: content-box;height: 2px;margin-top: 16px;margin-bottom: 16px;border-width: 0px;border-style: none;border-color: initial;background-color: rgb(231, 231, 231);\"  \/>\n<p cid=\"n30\" mdtype=\"paragraph\" class=\"md-end-block md-p\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;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=\"md-plain\" style=\"box-sizing: border-box;\">GitHub\uff1a<\/span><span md-inline=\"link\" class=\"md-link\" style=\"box-sizing: border-box;\"><span md-inline=\"plain\" class=\"md-plain\" style=\"box-sizing: border-box;\">https:\/\/github.com\/dkbnull\/SpringBootDemo<\/span><\/span><\/p>\n<p cid=\"n33\" mdtype=\"paragraph\" class=\"md-end-block md-p\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;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=\"md-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\" class=\"md-plain\" style=\"box-sizing: border-box;\">https:\/\/blog.csdn.net\/dkbnull\/article\/details\/95390533<\/span><\/span><\/p>\n<hr style=\"box-sizing: content-box;height: 2px;margin-top: 16px;margin-bottom: 16px;border-width: 0px;border-style: none;border-color: initial;background-color: rgb(231, 231, 231);\"  \/>\n<p cid=\"n32\" mdtype=\"paragraph\" class=\"md-end-block md-p md-focus\" style=\"box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;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<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 2019.1.2 J &#8230;<\/p>\n","protected":false},"author":1,"featured_media":4354,"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-4358","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\/20240524153140431-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153146974.jpg","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153140431-300x127.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153140431-1024x435.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153146974.jpg","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153140431-300x127.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153140431-1024x435.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153140431.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153146974.jpg","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153146974.jpg","id":"image1"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Spring Boot","post_date":"2019-07-10","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":286,"next_post_id":4353,"next_post_title":"Spring Boot\u6574\u5408WebSocket\u5b9e\u73b0\u5b9e\u65f6\u6d88\u606f\u63a8\u9001","previous_post_id":4373,"previous_post_title":"Spring Boot\u5b9e\u73b0\u6587\u4ef6\u4e0a\u4f20\u4e0e\u4e0b\u8f7d","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4358","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=4358"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4358\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/4354"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=4358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=4358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=4358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}