{"id":1019,"date":"2023-05-28T02:28:29","date_gmt":"2023-05-27T18:28:29","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=1019"},"modified":"2023-05-28T02:28:29","modified_gmt":"2023-05-27T18:28:29","slug":"spring%e5%92%8cspringboot-%e5%8c%ba%e5%88%ab%ef%bc%8c%e4%bd%a0%e7%9c%9f%e7%9a%84%e4%ba%86%e8%a7%a3%e5%90%97%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring\/spring%e5%92%8cspringboot-%e5%8c%ba%e5%88%ab%ef%bc%8c%e4%bd%a0%e7%9c%9f%e7%9a%84%e4%ba%86%e8%a7%a3%e5%90%97%ef%bc%9f\/","title":{"rendered":"Spring\u548cSpringBoot \u533a\u522b\uff0c\u4f60\u771f\u7684\u4e86\u89e3\u5417\uff1f"},"content":{"rendered":"<div class='wxsyncmain'>\n<p style=\"text-align: left;\"><span style=\"color: rgb(136, 136, 136);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);\"><\/span><span style=\"color: rgb(136, 136, 136);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);\">\u539f\u6587\uff1ajianshu.com\/p\/ffe5ebe17c3a<\/span><\/p>\n<section><mp-common-profile class=\"js_uneditable custom_select_card mp_profile_iframe\" data-pluginname=\"mpprofile\" data-weui-theme=\"light\" data-id=\"MjM5NDQ4MzA1Nw==\" data-headimg=\"http:\/\/mmbiz.qpic.cn\/mmbiz_png\/7OPxOA8ic5m8iaZhZuawOQpg1kY6p7DsNdHYUDLY6XBfZYualr95vI5BKic0SbnZ7lzkibwdTfLmFkx9flmoEvLQiaQ\/0?wx_fmt=png\" data-nickname=\"IT\u725b\u5ba2\" data-alias=\"\" data-signature=\"\u4e13\u6ce8\u4e8eIT\u6280\u672f\u5206\u4eab\uff0c\u539f\u521b\u6280\u672f\u548c\u521b\u65b0\u6280\u672f\u5206\u4eab\uff0cIT\u725b\u5ba2\uff0c\u6211\u4eec\u4e00\u8d77\u8fdb\u6b65\u2026\u2026\" data-from=\"0\" data-is_biz_ban=\"0\"><\/mp-common-profile><\/section>\n<h2 style=\"margin-bottom: 16px;outline: 0px;font-weight: 600;font-size: 24px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;color: rgb(64, 64, 64);text-rendering: optimizelegibility;font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: left;background-color: rgb(255, 255, 255);visibility: visible;overflow-wrap: break-word !important;\">\u6982\u8ff0<\/h2>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u5bf9\u4e8e<code style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring<\/code>\u548c<code style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">SpringBoot<\/code>\u5230\u5e95\u6709\u4ec0\u4e48\u533a\u522b\uff0c\u6211\u542c\u5230\u4e86\u5f88\u591a\u7b54\u6848\uff0c\u521a\u5f00\u59cb\u8fc8\u5165\u5b66\u4e60<code style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">SpringBoot<\/code>\u7684\u6211\u5f53\u65f6\u4e5f\u662f\u4e00\u5934\u96fe\u6c34\uff0c\u968f\u7740\u7ecf\u9a8c\u7684\u79ef\u7d2f\u3001\u6211\u6162\u6162\u7406\u89e3\u4e86\u8fd9\u4e24\u4e2a\u6846\u67b6\u5230\u5e95\u6709\u4ec0\u4e48\u533a\u522b\uff0c\u76f8\u4fe1\u5bf9\u4e8e\u7528\u4e86<code style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">SpringBoot<\/code>\u5f88\u4e45\u7684\u540c\u5b66\u6765\u8bf4\uff0c\u8fd8\u4e0d\u662f\u5f88\u7406\u89e3<code style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">SpringBoot<\/code>\u5230\u5e95\u548c<code style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring<\/code>\u6709\u4ec0\u4e48\u533a\u522b\uff0c\u770b\u5b8c\u6587\u7ae0\u4e2d\u7684\u6bd4\u8f83\uff0c\u6216\u8bb8\u4f60\u6709\u4e86\u4e0d\u540c\u7684\u7b54\u6848\u548c\u770b\u6cd5\uff01<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<h2 style=\"margin-bottom: 16px;outline: 0px;font-weight: 600;font-size: 24px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;color: rgb(64, 64, 64);text-rendering: optimizelegibility;font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: left;background-color: rgb(255, 255, 255);visibility: visible;overflow-wrap: break-word !important;\">\u4ec0\u4e48\u662fSpring<\/h2>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u4f5c\u4e3a<code style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Java<\/code>\u5f00\u53d1\u4eba\u5458\uff0c\u5927\u5bb6\u90fd<code style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring<\/code>\u90fd\u4e0d\u964c\u751f\uff0c\u7b80\u800c\u8a00\u4e4b\uff0c<code style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring<\/code>\u6846\u67b6\u4e3a\u5f00\u53d1<code style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Java<\/code>\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u4e86\u5168\u9762\u7684\u57fa\u7840\u67b6\u6784\u652f\u6301\u3002<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u5b83\u5305\u542b\u4e00\u4e9b\u5f88\u597d\u7684\u529f\u80fd\uff0c\u5982\u4f9d\u8d56\u6ce8\u5165\u548c\u5f00\u7bb1\u5373\u7528\u7684\u6a21\u5757\uff0c\u5982\uff1a<code style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring JDBC \u3001Spring MVC \u3001Spring Security\u3001 Spring AOP \u3001Spring ORM \u3001Spring Test<\/code>\uff0c\u8fd9\u4e9b\u6a21\u5757\u7f29\u77ed\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u65f6\u95f4\uff0c\u63d0\u9ad8\u4e86\u5e94\u7528\u5f00\u53d1\u7684\u6548\u7387<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u4f8b\u5982\uff0c\u5728<code style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Java Web<\/code>\u5f00\u53d1\u7684\u65e9\u671f\u9636\u6bb5\uff0c\u6211\u4eec\u9700\u8981\u7f16\u5199\u5927\u91cf\u7684\u4ee3\u7801\u6765\u5c06\u8bb0\u5f55\u63d2\u5165\u5230\u6570\u636e\u5e93\u4e2d\u3002\u4f46\u662f\u901a\u8fc7\u4f7f\u7528<code style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring JDBC<\/code>\u6a21\u5757\u7684<code style=\"outline: 0px;max-width: 100%;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">JDBCTemplate<\/code>\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u64cd\u4f5c\u7b80\u5316\u4e3a\u51e0\u884c\u4ee3\u7801\u3002<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<h2 style=\"margin-bottom: 16px;outline: 0px;font-weight: 600;font-size: 24px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;color: rgb(64, 64, 64);text-rendering: optimizelegibility;font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: left;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\">\u4ec0\u4e48\u662fSpring Boot<\/h2>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u2003<\/span><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">Spring Boot<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u57fa\u672c\u4e0a\u662f<\/span><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">Spring<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u6846\u67b6\u7684\u6269\u5c55\uff0c\u5b83\u6d88\u9664\u4e86\u8bbe\u7f6e<\/span><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">Spring<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u7684<\/span><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">XML\u914d\u7f6e<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\uff0c\u4e3a\u66f4\u5feb\uff0c\u66f4\u9ad8\u6548\u7684\u5f00\u53d1\u751f\u6001\u7cfb\u7edf\u94fa\u5e73\u4e86\u9053\u8def\u3002<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><span style=\"outline: 0px;max-width: 100%;box-sizing: border-box;font-weight: 600;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;overflow-wrap: break-word !important;\"><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);overflow-wrap: break-word !important;\">Spring Boot<\/code>\u4e2d\u7684\u4e00\u4e9b\u7279\u5f81\uff1a<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<ul class=\"list-paddingleft-1\" style=\"padding-left: 1.2em;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\">\n<li style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u521b\u5efa\u72ec\u7acb\u7684<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring<\/code>\u5e94\u7528\u3002<\/p>\n<\/li>\n<li style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u5d4c\u5165\u5f0f<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Tomcat<\/code>\u3001<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Jetty<\/code>\u3001&nbsp;<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Undertow<\/code>\u5bb9\u5668\uff08\u65e0\u9700\u90e8\u7f72war\u6587\u4ef6\uff09\u3002<\/p>\n<\/li>\n<li style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u63d0\u4f9b\u7684<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">starters<\/code>&nbsp;\u7b80\u5316\u6784\u5efa\u914d\u7f6e<\/p>\n<\/li>\n<li style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u5c3d\u53ef\u80fd\u81ea\u52a8\u914d\u7f6e<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">spring<\/code>\u5e94\u7528\u3002<\/p>\n<\/li>\n<li style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u63d0\u4f9b\u751f\u4ea7\u6307\u6807,\u4f8b\u5982\u6307\u6807\u3001\u5065\u58ee\u68c0\u67e5\u548c\u5916\u90e8\u5316\u914d\u7f6e<\/p>\n<\/li>\n<li style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u5b8c\u5168\u6ca1\u6709\u4ee3\u7801\u751f\u6210\u548c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">XML<\/code>\u914d\u7f6e\u8981\u6c42<\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<h2 style=\"margin-bottom: 16px;outline: 0px;font-weight: 600;font-size: 24px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;color: rgb(64, 64, 64);text-rendering: optimizelegibility;font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: left;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\">\u4ece\u914d\u7f6e\u5206\u6790<\/h2>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<h3 style=\"margin-bottom: 16px;outline: 0px;font-weight: 600;font-size: 22px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;color: rgb(64, 64, 64);text-rendering: optimizelegibility;font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: left;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\">Maven\u4f9d\u8d56<\/h3>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><span style=\"outline: 0px;max-width: 100%;box-sizing: border-box;font-weight: 600;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;overflow-wrap: break-word !important;\">\u9996\u5148\uff0c\u8ba9\u6211\u4eec\u770b\u4e00\u4e0b\u4f7f\u7528Spring\u521b\u5efaWeb\u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u7684\u6700\u5c0f\u4f9d\u8d56\u9879<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"xml\"><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">&lt;dependency&gt;<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    &lt;groupId&gt;org.springframework&lt;\/groupId&gt;<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    &lt;artifactId&gt;spring-web&lt;\/artifactId&gt;<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    &lt;version&gt;5.1.0.RELEASE&lt;\/version&gt;<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">&lt;\/dependency&gt;<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">&lt;dependency&gt;<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    &lt;groupId&gt;org.springframework&lt;\/groupId&gt;<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    &lt;artifactId&gt;spring-webmvc&lt;\/artifactId&gt;<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    &lt;version&gt;5.1.0.RELEASE&lt;\/version&gt;<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">&lt;\/dependency&gt;<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><span style=\"outline: 0px;max-width: 100%;box-sizing: border-box;font-weight: 600;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;overflow-wrap: break-word !important;\">\u4e0eSpring\u4e0d\u540c\uff0cSpring Boot\u53ea\u9700\u8981\u4e00\u4e2a\u4f9d\u8d56\u9879\u6765\u542f\u52a8\u548c\u8fd0\u884cWeb\u5e94\u7528\u7a0b\u5e8f\uff1a<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"xml\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">dependency<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">groupId<\/span>&gt;<\/span>org.springframework.boot<span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">groupId<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">artifactId<\/span>&gt;<\/span>spring-boot-starter-web<span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">artifactId<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">version<\/span>&gt;<\/span>2.0.6.RELEASE<span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">version<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">dependency<\/span>&gt;<\/span><\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><strong style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u5728\u8fdb\u884c\u6784\u5efa\u671f\u95f4\uff0c\u6240\u6709\u5176\u4ed6\u4f9d\u8d56\u9879\u5c06\u81ea\u52a8\u6dfb\u52a0\u5230\u9879\u76ee\u4e2d\u3002<\/strong><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u2003\u2003\u53e6\u4e00\u4e2a\u5f88\u597d\u7684\u4f8b\u5b50\u5c31\u662f\u6d4b\u8bd5\u5e93\u3002\u6211\u4eec\u901a\u5e38\u4f7f\u7528<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Test<\/code>\uff0c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">JUnit<\/code>\uff0c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Hamcrest<\/code>\u548c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Mockito<\/code>\u5e93\u3002\u5728<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring<\/code>\u9879\u76ee\u4e2d\uff0c\u6211\u4eec\u5e94\u8be5\u5c06\u6240\u6709\u8fd9\u4e9b\u5e93\u6dfb\u52a0\u4e3a\u4f9d\u8d56\u9879\u3002\u4f46\u662f\u5728<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Boot\u4e2d<\/code>\uff0c\u6211\u4eec\u53ea\u9700\u8981\u6dfb\u52a0<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">spring-boot-starter-test<\/code>\u4f9d\u8d56\u9879\u6765\u81ea\u52a8\u5305\u542b\u8fd9\u4e9b\u5e93\u3002<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><strong style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Boot\u4e3a\u4e0d\u540c\u7684Spring\u6a21\u5757\u63d0\u4f9b\u4e86\u8bb8\u591a\u4f9d\u8d56\u9879\u3002\u4e00\u4e9b\u6700\u5e38\u7528\u7684\u662f\uff1a<\/strong><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">spring-boot-starter-data-jpa<\/code><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">spring-boot-starter-security<\/code><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">spring-boot-starter-test<\/code><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">spring-boot-starter-web<\/code><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">spring-boot-starter-thymeleaf<\/code><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u6709\u5173<\/span><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">starter<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u7684\u5b8c\u6574\u5217\u8868\uff0c\u8bf7\u67e5\u770b<\/span>Spring\u6587\u6863<span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u3002<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<h3 style=\"margin-bottom: 16px;outline: 0px;font-weight: 600;font-size: 22px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;color: rgb(64, 64, 64);text-rendering: optimizelegibility;font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: left;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\">MVC\u914d\u7f6e<\/h3>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><strong style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u8ba9\u6211\u4eec\u6765\u770b\u4e00\u4e0b<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring<\/code>\u548c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Boot<\/code>\u521b\u5efa<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">JSP Web<\/code>\u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u7684\u914d\u7f6e\u3002<\/strong><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><strong style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/strong><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring<\/code>\u9700\u8981\u5b9a\u4e49\u8c03\u5ea6\u7a0b\u5e8f<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">servlet<\/code>\uff0c\u6620\u5c04\u548c\u5176\u4ed6\u652f\u6301\u914d\u7f6e\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528&nbsp;<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">web.xml<\/code>&nbsp;\u6587\u4ef6\u6216<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Initializer<\/code>\u7c7b\u6765\u5b8c\u6210\u6b64\u64cd\u4f5c\uff1a<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"java\"><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">public class MyWebAppInitializer implements WebApplicationInitializer {<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    @Override<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    public void onStartup(ServletContext container) {<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext();<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        context.setConfigLocation(\"com.pingfangushi\");<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">          container.addListener(new ContextLoaderListener(context));<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">          ServletRegistration.Dynamic dispatcher = container<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">          .addServlet(\"dispatcher\", new DispatcherServlet(context));<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        dispatcher.setLoadOnStartup(1);<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        dispatcher.addMapping(\"\/\");<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    }<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">}<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u8fd8\u9700\u8981\u5c06<\/span><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">@EnableWebMvc<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u6ce8\u91ca\u6dfb\u52a0\u5230<\/span><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">@Configuration<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u7c7b\uff0c\u5e76\u5b9a\u4e49\u4e00\u4e2a\u89c6\u56fe\u89e3\u6790\u5668\u6765\u89e3\u6790\u4ece\u63a7\u5236\u5668\u8fd4\u56de\u7684\u89c6\u56fe\uff1a<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"java\"><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">@EnableWebMvc<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">@Configuration<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">public class ClientWebConfig implements WebMvcConfigurer { <\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">   @Bean<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">   public ViewResolver viewResolver() {<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">      InternalResourceViewResolver bean<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        = new InternalResourceViewResolver();<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">      bean.setViewClass(JstlView.class);<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">      bean.setPrefix(\"\/WEB-INF\/view\/\");<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">      bean.setSuffix(\".jsp\");<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">      return bean;<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">   }<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">}<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u518d\u6765\u770b<\/span><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">SpringBoot<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u4e00\u65e6\u6211\u4eec\u6dfb\u52a0\u4e86<\/span><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">Web<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u542f\u52a8\u7a0b\u5e8f\uff0c<\/span><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">Spring Boot<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u53ea\u9700\u8981\u5728<\/span><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">application<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u914d\u7f6e\u6587\u4ef6\u4e2d\u914d\u7f6e\u51e0\u4e2a\u5c5e\u6027\u6765\u5b8c\u6210\u5982\u4e0a\u64cd\u4f5c\uff1a<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<pre style=\"margin-bottom: 20px;padding: 1em 1em 1em 3.8em;outline: 0px;max-width: 100%;box-sizing: border-box;overflow-wrap: normal;letter-spacing: 0.544px;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;overflow: scroll auto;word-break: break-all;overscroll-behavior-x: contain;border-radius: 4px;z-index: 0;line-height: 1.5;color: rgb(204, 204, 204);background: rgb(45, 45, 45);text-align: left;tab-size: 4;hyphens: none;counter-reset: linenumber 0;\"><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box;overflow-wrap: normal;font-size: 1em;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: unset;white-space: inherit;color: inherit;background: none transparent;word-spacing: normal;word-break: normal;line-height: 1.5;tab-size: 4;hyphens: none;\">spring.mvc.view.prefix=\/WEB-INF\/jsp\/<br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/>spring.mvc.view.suffix=.jsp<\/code><\/pre>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><strong style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u4e0a\u9762\u7684\u6240\u6709Spring\u914d\u7f6e\u90fd\u662f\u901a\u8fc7\u4e00\u4e2a\u540d\u4e3aauto-configuration\u7684\u8fc7\u7a0b\u6dfb\u52a0<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Boot web starter<\/code>\u6765\u81ea\u52a8\u5305\u542b\u7684\u3002<\/strong><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u2003\u2003\u8fd9\u610f\u5473\u7740<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Boot<\/code>\u5c06\u67e5\u770b\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5b58\u5728\u7684\u4f9d\u8d56\u9879\uff0c\u5c5e\u6027\u548c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">bean<\/code>\uff0c\u5e76\u6839\u636e\u8fd9\u4e9b\u4f9d\u8d56\u9879\uff0c\u5bf9\u5c5e\u6027\u548c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">bean<\/code>\u8fdb\u884c\u914d\u7f6e\u3002\u5f53\u7136\uff0c\u5982\u679c\u6211\u4eec\u60f3\u8981\u6dfb\u52a0\u81ea\u5df1\u7684\u81ea\u5b9a\u4e49\u914d\u7f6e\uff0c\u90a3\u4e48<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Boot<\/code>\u81ea\u52a8\u914d\u7f6e\u5c06\u4f1a\u9000\u56de\u3002<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<h3 style=\"margin-bottom: 16px;outline: 0px;font-weight: 600;font-size: 22px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;color: rgb(64, 64, 64);text-rendering: optimizelegibility;font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: left;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\">\u914d\u7f6e\u6a21\u677f\u5f15\u64ce<\/h3>\n<p style=\"margin-bottom: 20px;outline: 0px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;word-break: break-word;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: left;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\"><span style=\"outline: 0px;max-width: 100%;box-sizing: border-box;font-weight: 600;overflow-wrap: break-word !important;\">\u73b0\u5728\u6211\u4eec\u6765\u770b\u4e0b\u5982\u4f55\u5728Spring\u548cSpring Boot\u4e2d\u914d\u7f6eThymeleaf\u6a21\u677f\u5f15\u64ce\u3002<\/span><\/p>\n<p style=\"margin-bottom: 20px;outline: 0px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;word-break: break-word;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: left;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\">\u5728<code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);overflow-wrap: break-word !important;\">Spring<\/code>\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u4e3a\u89c6\u56fe\u89e3\u6790\u5668\u6dfb\u52a0<code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);overflow-wrap: break-word !important;\">thymeleaf-spring5<\/code>\u4f9d\u8d56\u9879\u548c\u4e00\u4e9b\u914d\u7f6e\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"java\"><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">@Configuration<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">@EnableWebMvc<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">public class MvcWebConfig implements WebMvcConfigurer {<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    @Autowired<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    private ApplicationContext applicationContext;<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    @Bean<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    public SpringResourceTemplateResolver templateResolver() {<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver();<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        templateResolver.setApplicationContext(applicationContext);<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        templateResolver.setPrefix(\"\/WEB-INF\/views\/\");<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        templateResolver.setSuffix(\".html\");<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        return templateResolver;<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    }<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    @Bean<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    public SpringTemplateEngine templateEngine() {<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        SpringTemplateEngine templateEngine = new SpringTemplateEngine();<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        templateEngine.setTemplateResolver(templateResolver());<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        templateEngine.setEnableSpringELCompiler(true);<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        return templateEngine;<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    }<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    @Override<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    public void configureViewResolvers(ViewResolverRegistry registry) {<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        ThymeleafViewResolver resolver = new ThymeleafViewResolver();<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        resolver.setTemplateEngine(templateEngine());<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        registry.viewResolver(resolver);<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    }<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">}<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">SpringBoot1X<\/code>\u53ea\u9700\u8981<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">spring-boot-starter-thymeleaf<\/code>\u7684\u4f9d\u8d56\u9879\u6765\u542f\u7528<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Web<\/code>\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Thymeleaf<\/code>\u652f\u6301\u3002<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/>\u4f46\u662f\u7531\u4e8e<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Thymeleaf3.0<\/code>\u4e2d\u7684\u65b0\u529f\u80fd\uff0c\u6211\u4eec\u5fc5\u987b\u5c06<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">thymeleaf-layout-dialect<\/code>&nbsp;\u6dfb\u52a0\u4e3a<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">SpringBoot2X<\/code>Web\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684\u4f9d\u8d56\u9879\u3002\u914d\u7f6e\u597d\u4f9d\u8d56\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5c06\u6a21\u677f\u6dfb\u52a0\u5230<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">src\/main\/resources\/templates<\/code>\u6587\u4ef6\u5939\u4e2d\uff0c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">SpringBoot<\/code>\u5c06\u81ea\u52a8\u663e\u793a\u5b83\u4eec\u3002<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br  \/><\/p>\n<h3 style=\"margin-bottom: 16px;outline: 0px;font-weight: 600;font-size: 22px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;color: rgb(64, 64, 64);text-rendering: optimizelegibility;font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: left;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\">Spring Security \u914d\u7f6e<\/h3>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u2003\u2003\u4e3a\u7b80\u5355\u8d77\u89c1\uff0c\u6211\u4eec\u4f7f\u7528\u6846\u67b6\u9ed8\u8ba4\u7684<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">HTTP Basic<\/code>\u8eab\u4efd\u9a8c\u8bc1\u3002\u8ba9\u6211\u4eec\u9996\u5148\u770b\u4e00\u4e0b\u4f7f\u7528<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring<\/code>\u542f\u7528<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Security<\/code>\u6240\u9700\u7684\u4f9d\u8d56\u5173\u7cfb\u548c\u914d\u7f6e\u3002<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/>\u2003\u2003<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring<\/code>\u9996\u5148\u9700\u8981\u4f9d\u8d56 &nbsp;<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">spring-security-web<\/code>\u548c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">spring-security-config<\/code>&nbsp;&nbsp;\u6a21\u5757\u3002\u63a5\u4e0b\u6765\uff0c &nbsp;\u6211\u4eec\u9700\u8981\u6dfb\u52a0\u4e00\u4e2a\u6269\u5c55<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">WebSecurityConfigurerAdapter<\/code>\u7684\u7c7b\uff0c\u5e76\u4f7f\u7528<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">@EnableWebSecurity<\/code>\u6ce8\u89e3\uff1a<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"java\"><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">@Configuration<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">@EnableWebSecurity<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">public class CustomWebSecurityConfigurerAdapter extends WebSecurityConfigurerAdapter {<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    @Autowired<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        auth.inMemoryAuthentication()<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">          .withUser(\"admin\")<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">            .password(passwordEncoder()<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">            .encode(\"password\"))<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">          .authorities(\"ROLE_ADMIN\");<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    }<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    @Override<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    protected void configure(HttpSecurity http) throws Exception {<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        http.authorizeRequests()<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">          .anyRequest().authenticated()<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">          .and()<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">          .httpBasic();<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    }<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    @Bean<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    public PasswordEncoder passwordEncoder() {<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        return new BCryptPasswordEncoder();<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    }<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">}<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u2003 \u8fd9\u91cc\u6211\u4eec\u4f7f\u7528<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">inMemoryAuthentication<\/code>\u6765\u8bbe\u7f6e\u8eab\u4efd\u9a8c\u8bc1\u3002\u540c\u6837\uff0c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Boot<\/code>\u4e5f\u9700\u8981\u8fd9\u4e9b\u4f9d\u8d56\u9879\u624d\u80fd\u4f7f\u5176\u5de5\u4f5c\u3002\u4f46\u662f\u6211\u4eec\u53ea\u9700\u8981\u5b9a\u4e49<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">spring-boot-starter-security<\/code>\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u56e0\u4e3a\u8fd9\u4f1a\u81ea\u52a8\u5c06\u6240\u6709\u76f8\u5173\u7684\u4f9d\u8d56\u9879\u6dfb\u52a0\u5230\u7c7b\u8def\u5f84\u4e2d\u3002<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><strong style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Boot<\/code>\u4e2d\u7684\u5b89\u5168\u914d\u7f6e\u4e0e\u4e0a\u9762\u7684\u76f8\u540c<\/strong>&nbsp;\u3002<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<h2 style=\"margin-bottom: 16px;outline: 0px;font-weight: 600;font-size: 24px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;color: rgb(64, 64, 64);text-rendering: optimizelegibility;font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: left;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\">\u5e94\u7528\u7a0b\u5e8f\u542f\u52a8\u5f15\u5bfc\u914d\u7f6e<\/h2>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring<\/code>\u548c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Boot<\/code>\u4e2d\u5e94\u7528\u7a0b\u5e8f\u5f15\u5bfc\u7684\u57fa\u672c\u533a\u522b\u5728\u4e8e<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">servlet<\/code>\u3002<br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring<\/code>\u4f7f\u7528<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">web.xml<\/code>&nbsp;&nbsp;\u6216<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">SpringServletContainerInitializer<\/code>\u4f5c\u4e3a\u5176\u5f15\u5bfc\u5165\u53e3\u70b9\u3002<br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Boot<\/code>\u4ec5\u4f7f\u7528<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Servlet 3<\/code>\u529f\u80fd\u6765\u5f15\u5bfc\u5e94\u7528\u7a0b\u5e8f\uff0c\u4e0b\u9762\u8ba9\u6211\u4eec\u8be6\u7ec6\u6765\u4e86\u89e3\u4e0b<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<h3 style=\"margin-bottom: 16px;outline: 0px;font-weight: 600;font-size: 22px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;color: rgb(64, 64, 64);text-rendering: optimizelegibility;font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: left;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\">Spring \u5f15\u5bfc\u914d\u7f6e<\/h3>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">Spring<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u652f\u6301\u4f20\u7edf\u7684<\/span><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">web.xml<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u5f15\u5bfc\u65b9\u5f0f\u4ee5\u53ca\u6700\u65b0\u7684<\/span><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">Servlet 3+<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u65b9\u6cd5\u3002<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br  \/><\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><span style=\"outline: 0px;max-width: 100%;box-sizing: border-box;font-weight: 600;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;overflow-wrap: break-word !important;\">\u914d\u7f6e<code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);overflow-wrap: break-word !important;\">web.xml<\/code>\u65b9\u6cd5\u542f\u52a8\u7684\u6b65\u9aa4<\/span><\/p>\n<ul class=\"list-paddingleft-1\" style=\"padding-left: 1.2em;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\">\n<li style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Servlet<\/code>\u5bb9\u5668\uff08\u670d\u52a1\u5668\uff09\u8bfb\u53d6<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">web.xml<\/code><\/p>\n<\/li>\n<li style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">web.xml<\/code>\u4e2d\u5b9a\u4e49\u7684<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">DispatcherServlet<\/code>\u7531\u5bb9\u5668\u5b9e\u4f8b\u5316<\/p>\n<\/li>\n<li style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">DispatcherServlet<\/code>\u901a\u8fc7\u8bfb\u53d6<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">WEB-INF \/ {servletName} -servlet.xml<\/code>\u6765\u521b\u5efa<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">WebApplicationContext<\/code>\u3002\u6700\u540e\uff0c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">DispatcherServlet<\/code>\u6ce8\u518c\u5728\u5e94\u7528\u7a0b\u5e8f\u4e0a\u4e0b\u6587\u4e2d\u5b9a\u4e49\u7684<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">bean<\/code><\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><span style=\"outline: 0px;max-width: 100%;box-sizing: border-box;font-weight: 600;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;overflow-wrap: break-word !important;\">\u4f7f\u7528<code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);overflow-wrap: break-word !important;\">Servlet 3+<\/code>\u65b9\u6cd5\u7684<code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);overflow-wrap: break-word !important;\">Spring<\/code>\u542f\u52a8\u6b65\u9aa4<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u5bb9\u5668\u641c\u7d22\u5b9e\u73b0<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">ServletContainerInitializer<\/code>\u7684\u7c7b\u5e76\u6267\u884c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">SpringServletContainerInitializer<\/code>\u627e\u5230\u5b9e\u73b0\u6240\u6709\u7c7b<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">WebApplicationInitializer``WebApplicationInitializer<\/code>\u521b\u5efa\u5177\u6709XML\u6216\u4e0a\u4e0b\u6587<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">@Configuration<\/code>\u7c7b<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">WebApplicationInitializer<\/code>\u521b\u5efa<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">DispatcherServlet<\/code>\u4e0e\u5148\u524d\u521b\u5efa\u7684\u4e0a\u4e0b\u6587\u3002<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<h3 style=\"margin-bottom: 16px;outline: 0px;font-weight: 600;font-size: 22px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;color: rgb(64, 64, 64);text-rendering: optimizelegibility;font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: left;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\">SpringBoot \u5f15\u5bfc\u914d\u7f6e<\/h3>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><span style=\"outline: 0px;max-width: 100%;box-sizing: border-box;font-weight: 600;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;overflow-wrap: break-word !important;\">Spring Boot\u5e94\u7528\u7a0b\u5e8f\u7684\u5165\u53e3\u70b9\u662f\u4f7f\u7528@SpringBootApplication\u6ce8\u91ca\u7684\u7c7b<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"java\"><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">@SpringBootApplication<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">public class Application {<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    public static void main(String[] args) {<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">        SpringApplication.run(Application.class, args);<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">    }<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\" style=\"outline: 0px;max-width: 1000%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">}<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u2003\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Boot<\/code>\u4f7f\u7528\u5d4c\u5165\u5f0f\u5bb9\u5668\u6765\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Boot<\/code>\u4f7f\u7528<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">public static void main<\/code>\u5165\u53e3\u70b9\u6765\u542f\u52a8\u5d4c\u5165\u5f0f<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Web<\/code>\u670d\u52a1\u5668\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u8d1f\u8d23\u5c06<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Servlet<\/code>\uff0c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Filter<\/code>\u548c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">ServletContextInitializer bean<\/code>\u4ece\u5e94\u7528\u7a0b\u5e8f\u4e0a\u4e0b\u6587\u7ed1\u5b9a\u5230\u5d4c\u5165\u5f0f<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">servlet<\/code>\u5bb9\u5668<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Boot<\/code>\u7684\u53e6\u4e00\u4e2a\u7279\u6027\u662f\u5b83\u4f1a\u81ea\u52a8\u626b\u63cf\u540c\u4e00\u4e2a\u5305\u4e2d\u7684\u6240\u6709\u7c7b\u6216<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Main<\/code>\u7c7b\u7684\u5b50\u5305\u4e2d\u7684\u7ec4\u4ef6\u3002<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Boot<\/code>\u63d0\u4f9b\u4e86\u5c06\u5176\u90e8\u7f72\u5230\u5916\u90e8\u5bb9\u5668\u7684\u65b9\u5f0f\u3002\u6211\u4eec\u53ea\u9700\u8981\u6269\u5c55<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">SpringBootServletInitializer<\/code>\u5373\u53ef\uff1a<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"java\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">\/**<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">&nbsp;*&nbsp;War\u90e8\u7f72<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"> *\/<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">public<\/span> <span class=\"code-snippet__class\"><span class=\"code-snippet__keyword\">class<\/span> <span class=\"code-snippet__title\">ServletInitializer<\/span> <span class=\"code-snippet__keyword\">extends<\/span> <span class=\"code-snippet__title\">SpringBootServletInitializer<\/span> <\/span>{<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__meta\">@Override<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">protected<\/span> SpringApplicationBuilder <span class=\"code-snippet__title\">configure<\/span><span class=\"code-snippet__params\">(SpringApplicationBuilder application)<\/span> <\/span>{<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__keyword\">return<\/span> application.sources(Application.class);<\/span><\/code><code><span class=\"code-snippet_outer\">    }<\/span><\/code><code style=\" white-space:pre-wrap;outline: 0px;max-width: 1000%;text-align: left;display: flex; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important; \"><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__meta\">@Override<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">public<\/span> <span class=\"code-snippet__keyword\">void<\/span> <span class=\"code-snippet__title\">onStartup<\/span><span class=\"code-snippet__params\">(ServletContext servletContext)<\/span> <span class=\"code-snippet__keyword\">throws<\/span> ServletException <\/span>{<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__keyword\">super<\/span>.onStartup(servletContext);<\/span><\/code><code><span class=\"code-snippet_outer\">        servletContext.addListener(<span class=\"code-snippet__keyword\">new<\/span> HttpSessionEventPublisher());<\/span><\/code><code><span class=\"code-snippet_outer\">    }<\/span><\/code><code><span class=\"code-snippet_outer\">}<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u2003\u2003\u8fd9\u91cc\u5916\u90e8<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">servlet<\/code>\u5bb9\u5668\u67e5\u627e\u5728war\u5305\u4e0b\u7684<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">META-INF<\/code>\u6587\u4ef6\u5939\u4e0bMANIFEST.MF\u6587\u4ef6\u4e2d\u5b9a\u4e49\u7684<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Main-class<\/code>\uff0c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">SpringBootServletInitializer<\/code>\u5c06\u8d1f\u8d23\u7ed1\u5b9a<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Servlet<\/code>\uff0c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Filter<\/code>\u548c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">ServletContextInitializer<\/code>\u3002<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<h2 style=\"margin-bottom: 16px;outline: 0px;font-weight: 600;font-size: 24px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;color: rgb(64, 64, 64);text-rendering: optimizelegibility;font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: left;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\">\u6253\u5305\u548c\u90e8\u7f72<\/h2>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u6700\u540e\uff0c\u8ba9\u6211\u4eec\u770b\u770b\u5982\u4f55\u6253\u5305\u548c\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u3002\u8fd9\u4e24\u4e2a\u6846\u67b6\u90fd\u652f\u6301<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Maven<\/code>\u548c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Gradle<\/code>\u7b49\u901a\u7528\u5305\u7ba1\u7406\u6280\u672f\u3002\u4f46\u662f\u5728\u90e8\u7f72\u65b9\u9762\uff0c\u8fd9\u4e9b\u6846\u67b6\u5dee\u5f02\u5f88\u5927\u3002<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u4f8b\u5982\uff0cSpring Boot Maven\u63d2\u4ef6\u5728<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Maven<\/code>\u4e2d\u63d0\u4f9b<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Boot<\/code>\u652f\u6301\u3002\u5b83\u8fd8\u5141\u8bb8\u6253\u5305\u53ef\u6267\u884c<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">jar<\/code>\u6216<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">war<\/code>\u5305\u5e76<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u5c31\u5730<\/code>\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u5728\u90e8\u7f72\u73af\u5883\u4e2d<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring Boot<\/code>&nbsp;\u5bf9\u6bd4<code style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">Spring<\/code>\u7684\u4e00\u4e9b\u4f18\u70b9\u5305\u62ec\uff1a<\/p>\n<ul class=\"list-paddingleft-1\" style=\"padding-left: 1.2em;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\">\n<li style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u63d0\u4f9b\u5d4c\u5165\u5f0f\u5bb9\u5668\u652f\u6301<\/p>\n<\/li>\n<li style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u4f7f\u7528\u547d\u4ee4<em style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">java -jar<\/em>\u72ec\u7acb\u8fd0\u884cjar<\/p>\n<\/li>\n<li style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u5728\u5916\u90e8\u5bb9\u5668\u4e2d\u90e8\u7f72\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u6392\u9664\u4f9d\u8d56\u5173\u7cfb\u4ee5\u907f\u514d\u6f5c\u5728\u7684jar\u51b2\u7a81<\/p>\n<\/li>\n<li style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u90e8\u7f72\u65f6\u7075\u6d3b\u6307\u5b9a\u914d\u7f6e\u6587\u4ef6\u7684\u9009\u9879<\/p>\n<\/li>\n<li style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\">\u7528\u4e8e\u96c6\u6210\u6d4b\u8bd5\u7684\u968f\u673a\u7aef\u53e3\u751f\u6210<\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/p>\n<h2 style=\"margin-bottom: 16px;outline: 0px;font-weight: 600;font-size: 24px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;color: rgb(64, 64, 64);text-rendering: optimizelegibility;font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: left;background-color: rgb(255, 255, 255);overflow-wrap: break-word !important;\">\u7ed3\u8bba<\/h2>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u7b80\u800c\u8a00\u4e4b\uff0c\u6211\u4eec\u53ef\u4ee5\u8bf4<\/span><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">Spring Boot<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u53ea\u662f<\/span><code style=\"padding: 2px 4px;outline: 0px;max-width: 100%;box-sizing: border-box;font-size: 12px;font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;border-width: initial;border-style: none;border-color: initial;vertical-align: middle;white-space: pre-wrap;color: rgb(199, 37, 78);background-color: rgb(242, 242, 242);text-align: start;overflow-wrap: break-word !important;\">Spring<\/code><span style=\"outline: 0px;max-width: 100%;color: rgb(64, 64, 64);font-family: -apple-system, BlinkMacSystemFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u672c\u8eab\u7684\u6269\u5c55\uff0c\u4f7f\u5f00\u53d1\uff0c\u6d4b\u8bd5\u548c\u90e8\u7f72\u66f4\u52a0\u65b9\u4fbf\u3002<\/span><\/p>\n<section><mp-common-profile class=\"js_uneditable custom_select_card mp_profile_iframe\" data-pluginname=\"mpprofile\" data-weui-theme=\"light\" data-id=\"MjM5NDQ4MzA1Nw==\" data-headimg=\"http:\/\/mmbiz.qpic.cn\/mmbiz_png\/7OPxOA8ic5m8iaZhZuawOQpg1kY6p7DsNdHYUDLY6XBfZYualr95vI5BKic0SbnZ7lzkibwdTfLmFkx9flmoEvLQiaQ\/0?wx_fmt=png\" data-nickname=\"IT\u725b\u5ba2\" data-alias=\"\" data-signature=\"\u4e13\u6ce8\u4e8eIT\u6280\u672f\u5206\u4eab\uff0c\u539f\u521b\u6280\u672f\u548c\u521b\u65b0\u6280\u672f\u5206\u4eab\uff0cIT\u725b\u5ba2\uff0c\u6211\u4eec\u4e00\u8d77\u8fdb\u6b65\u2026\u2026\" data-from=\"0\" data-is_biz_ban=\"0\"><\/mp-common-profile><\/section>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;max-width: 100%;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);font-size: 16px;color: rgb(63, 63, 63);text-align: left;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><p style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;max-width: 100%;letter-spacing: 0.544px;white-space: normal;color: rgb(62, 62, 62);text-align: center;widows: 1;word-spacing: 2px;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height: 2em;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"outline: 0px;max-width: 100%;font-size: 13px;letter-spacing: 0.5px;color: rgb(0, 128, 255);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"outline: 0px;max-width: 100%;font-family: -apple-system-font, system-ui, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u5982\u559c\u6b22\u672c\u6587\uff0c\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u628a\u6587\u7ae0\u5206\u4eab\u5230\u670b\u53cb\u5708<\/span><br style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"  \/><\/span><\/p><p style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;max-width: 100%;letter-spacing: 0.544px;white-space: normal;color: rgb(62, 62, 62);text-align: center;widows: 1;word-spacing: 2px;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height: 2em;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"outline: 0px;max-width: 100%;font-family: -apple-system-font, system-ui, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 13px;letter-spacing: 0.5px;color: rgb(217, 33, 66);box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u56e0\u516c\u4f17\u53f7\u66f4\u6539\u63a8\u9001\u89c4\u5219\uff0c\u8bf7\u70b9\u201c\u5728\u770b\u201d\u5e76\u52a0\u201c\u661f\u6807\u201d<span style=\"outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u7b2c\u4e00\u65f6\u95f4\u83b7\u53d6\u7cbe\u5f69\u6280\u672f\u5206\u4eab<\/span><\/span><\/strong><\/p><p style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;max-width: 100%;letter-spacing: 0.544px;white-space: normal;color: rgb(62, 62, 62);text-align: center;widows: 1;word-spacing: 2px;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height: 2em;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"outline: 0px;max-width: 100%;letter-spacing: 0.544px;font-family: \u5fae\u8f6f\u96c5\u9ed1;font-size: 16.3636px;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u00b7END\u00b7<\/strong><\/p><\/pre>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 IT\u725b\u5ba2              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\uff1ajianshu.com\/p\/ffe5ebe17c3a \u6982\u8ff0 \u5bf9\u4e8eSpring\u548cSpringBoot\u5230\u5e95\u6709\u4ec0\u4e48\u533a\u522b\uff0c\u6211\u542c\u5230\u4e86\u5f88 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":1018,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[6,7],"tags":[],"class_list":["post-1019","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring","category-spring-boot"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528021933902-150x150.jpeg","content_first_image":null,"post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528021933902-300x300.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528021933902.jpeg","post_frist_image":null,"post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528021933902-300x300.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528021933902.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528021933902.jpeg","post_all_images":[],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Spring","post_date":"2023-05-27","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":259,"next_post_id":1153,"next_post_title":"\u5229\u7528Spring\u6269\u5c55\u70b9\u6a21\u62dfFeign\u5b9e\u73b0\u8fdc\u7a0b\u8c03\u7528","previous_post_id":756,"previous_post_title":"\u6574\u5408Spring\u90fd\u559c\u6b22\u7528\u7684\u6ce8\u89e3@Import\u7684\u4f7f\u7528\u548c\u8be6\u7ec6\u4ecb\u7ecd","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1019","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=1019"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1019\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/1018"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}