{"id":59608,"date":"2026-01-14T07:49:21","date_gmt":"2026-01-13T23:49:21","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/59608.html"},"modified":"2026-01-14T07:49:21","modified_gmt":"2026-01-13T23:49:21","slug":"%e5%9f%ba%e4%ba%8espringboot%e7%9a%84%e6%99%ba%e8%83%bd%e5%9e%83%e5%9c%be%e5%88%86%e7%b1%bb%e5%8a%a9%e6%89%8b%e7%b3%bb%e7%bb%9f%e6%ba%90%e7%a0%81lw%e9%83%a8%e7%bd%b2%e6%96%87%e6%a1%a3%e8%ae%b2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/59608.html","title":{"rendered":"\u57fa\u4e8eSpringBoot\u7684\u667a\u80fd\u5783\u573e\u5206\u7c7b\u52a9\u624b\u7cfb\u7edf(\u6e90\u7801+lw+\u90e8\u7f72\u6587\u6863+\u8bb2\u89e3\u7b49)"},"content":{"rendered":"<h3>\u8bfe\u9898\u4ecb\u7ecd<\/h3>\n<p>\u672c\u8bfe\u9898\u65e8\u5728\u8bbe\u8ba1\u5e76\u5b9e\u73b0\u4e00\u6b3e\u57fa\u4e8eSpringBoot\u6846\u67b6\u7684\u667a\u80fd\u5783\u573e\u5206\u7c7b\u52a9\u624b\u7cfb\u7edf&#xff0c;\u4ee5\u89e3\u51b3\u5c45\u6c11\u5783\u573e\u5206\u7c7b\u8ba4\u77e5\u4e0d\u8db3\u3001\u5206\u7c7b\u5224\u65ad\u56f0\u96be\u3001\u5206\u7c7b\u77e5\u8bc6\u83b7\u53d6\u96f6\u6563\u3001\u6295\u653e\u6307\u5f15\u4e0d\u4fbf\u6377\u7b49\u95ee\u9898&#xff0c;\u642d\u5efa\u4e2a\u6027\u5316\u3001\u667a\u80fd\u5316\u3001\u4fbf\u6377\u5316\u7684\u5783\u573e\u5206\u7c7b\u8f85\u52a9\u670d\u52a1\u5e73\u53f0\u3002\u968f\u7740\u751f\u6001\u6587\u660e\u5efa\u8bbe\u63a8\u8fdb&#xff0c;\u5783\u573e\u5206\u7c7b\u6210\u4e3a\u57ce\u5e02\u73af\u5883\u6cbb\u7406\u7684\u91cd\u8981\u4e3e\u63aa&#xff0c;\u800c\u5c45\u6c11\u5728\u5b9e\u9645\u5206\u7c7b\u8fc7\u7a0b\u4e2d\u666e\u904d\u5b58\u5728\u5bf9\u5783\u573e\u54c1\u7c7b\u754c\u5b9a\u6a21\u7cca\u3001\u5206\u7c7b\u6807\u51c6\u8bb0\u5fc6\u4e0d\u7262\u3001\u7f3a\u4e4f\u5373\u65f6\u6307\u5bfc\u7b49\u75db\u70b9&#xff0c;\u4f20\u7edf\u5206\u7c7b\u6307\u5bfc\u6a21\u5f0f&#xff08;\u5982\u5ba3\u4f20\u624b\u518c\u3001\u73b0\u573a\u8bb2\u89e3&#xff09;\u5b58\u5728\u8986\u76d6\u8303\u56f4\u6709\u9650\u3001\u54cd\u5e94\u4e0d\u53ca\u65f6\u3001\u4e2a\u6027\u5316\u4e0d\u8db3\u7b49\u5f0a\u7aef&#xff0c;\u96be\u4ee5\u6ee1\u8db3\u5c45\u6c11\u9ad8\u6548\u3001\u51c6\u786e\u5b8c\u6210\u5783\u573e\u5206\u7c7b\u7684\u6838\u5fc3\u9700\u6c42\u3002\u8bfe\u9898\u4ee5SpringBoot\u4f5c\u4e3a\u6838\u5fc3\u6846\u67b6&#xff0c;\u7ed3\u5408MyBatis-Plus\u6570\u636e\u6301\u4e45\u5316\u6280\u672f\u4e0eMySQL\u6570\u636e\u5e93\u6784\u5efa\u9ad8\u53ef\u9760\u7684\u7cfb\u7edf\u67b6\u6784&#xff0c;\u4fdd\u969c\u5783\u573e\u5206\u7c7b\u77e5\u8bc6\u5e93\u6570\u636e\u3001\u7528\u6237\u67e5\u8be2\u8bb0\u5f55\u3001\u79ef\u5206\u4fe1\u606f\u3001\u4f7f\u7528\u53cd\u9988\u7b49\u6838\u5fc3\u6570\u636e\u7684\u5b89\u5168\u6027\u3001\u5b9e\u65f6\u6027\u4e0e\u5b8c\u6574\u6027\u3002\u7cfb\u7edf\u6838\u5fc3\u529f\u80fd\u6db5\u76d6\u667a\u80fd\u5783\u573e\u5206\u7c7b\u67e5\u8be2&#xff08;\u6587\u5b57\u68c0\u7d22\u3001\u56fe\u7247\u8bc6\u522b&#xff09;\u3001\u5206\u7c7b\u77e5\u8bc6\u79d1\u666e&#xff08;\u56fe\u6587&#043;\u8bed\u97f3\u8bb2\u89e3&#xff09;\u3001\u4e2a\u6027\u5316\u5206\u7c7b\u6307\u5f15\u3001\u6295\u653e\u70b9\u5bfc\u822a\u3001\u5206\u7c7b\u79ef\u5206\u6fc0\u52b1\u3001\u4f7f\u7528\u8bb0\u5f55\u7edf\u8ba1\u3001\u5e38\u89c1\u95ee\u9898\u89e3\u7b54\u53ca\u540e\u53f0\u77e5\u8bc6\u5e93\u66f4\u65b0\u7ba1\u7406\u7b49\u6838\u5fc3\u6a21\u5757&#xff0c;\u901a\u8fc7Swagger\/Knife4j\u5b9e\u73b0API\u6587\u6863\u81ea\u52a8\u5316\u751f\u6210&#xff0c;\u63d0\u5347\u5f00\u53d1\u4e0e\u7cfb\u7edf\u5bf9\u63a5\u6548\u7387\u3002\u8bfe\u9898\u7814\u7a76\u91cd\u70b9\u5728\u4e8e\u89e3\u51b3\u667a\u80fd\u5783\u573e\u5206\u7c7b\u52a9\u624b\u4e2d\u7684\u5783\u573e\u54c1\u7c7b\u7cbe\u51c6\u8bc6\u522b\u3001\u5206\u7c7b\u77e5\u8bc6\u9ad8\u6548\u4f20\u9012\u3001\u4e2a\u6027\u5316\u670d\u52a1\u9002\u914d\u3001\u7528\u6237\u4f7f\u7528\u4f53\u9a8c\u4f18\u5316\u7b49\u95ee\u9898&#xff0c;\u6700\u7ec8\u4ea7\u51fa\u4e00\u5957\u529f\u80fd\u5b8c\u6574\u3001\u8fd0\u884c\u7a33\u5b9a\u3001\u9002\u914d\u5c45\u6c11\u65e5\u5e38\u5783\u573e\u5206\u7c7b\u573a\u666f\u7684\u667a\u80fd\u5783\u573e\u5206\u7c7b\u52a9\u624b\u7cfb\u7edf&#xff0c;\u4e3a\u5e2e\u52a9\u5c45\u6c11\u51c6\u786e\u5b8c\u6210\u5783\u573e\u5206\u7c7b\u3001\u63d0\u5347\u5206\u7c7b\u53c2\u4e0e\u79ef\u6781\u6027\u3001\u52a9\u529b\u5783\u573e\u5206\u7c7b\u653f\u7b56\u843d\u5730\u63d0\u4f9b\u53ef\u53c2\u8003\u7684\u6280\u672f\u65b9\u6848\u4e0e\u5b9e\u8df5\u7ecf\u9a8c\u3002<\/p>\n<h3>\u524d\u8a00<\/h3>\n<p>&#x1f4af;\u535a\u4e3b\u4ecb\u7ecd&#xff1a;\u270cCSDN\u6bd5\u8bbe\u8f85\u5bfc\u7b2c\u4e00\u4eba\u3001\u9760\u8c31\u7b2c\u4e00\u4eba\u3001\u5168\u7f51\u7c89\u4e1d50W&#043;,csdn\u7279\u9080\u4f5c\u8005\u3001\u535a\u5ba2\u4e13\u5bb6\u3001\u817e\u8baf\u4e91\u793e\u533a\u5408\u4f5c\u8bb2\u5e08\u3001CSDN\u65b0\u661f\u8ba1\u5212\u5bfc\u5e08\u3001Java\u9886\u57df\u4f18\u8d28\u521b\u4f5c\u8005,\u535a\u5ba2\u4e4b\u661f\u3001\u6398\u91d1\/\u534e\u4e3a\u4e91\/\u963f\u91cc\u4e91\/InfoQ\u7b49\u5e73\u53f0\u4f18\u8d28\u4f5c\u8005\u3001\u4e13\u6ce8\u4e8eJava\u6280\u672f\u9886\u57df\u548c\u5b66\u751f\u6bd5\u4e1a\u9879\u76ee\u5b9e\u6218,\u9ad8\u6821\u8001\u5e08\/\u8bb2\u5e08\/\u540c\u884c\u524d\u8f88\u4ea4\u6d41\u270c&#x1f4af;<br \/>\n&#x1f4bb;\u6280\u672f\u8303\u56f4&#xff1a;SpringBoot\u3001Vue\u3001SSM\u3001HLMT\u3001Jsp\u3001PHP\u3001Nodejs\u3001Python\u3001\u722c\u866b\u3001\u6570\u636e\u53ef\u89c6\u5316\u3001\u5c0f\u7a0b\u5e8f\u3001\u5b89\u5353app\u3001\u5927\u6570\u636e\u3001\u7269\u8054\u7f51\u3001\u673a\u5668\u5b66\u4e60\u7b49\u8bbe\u8ba1\u4e0e\u5f00\u53d1\u3002<br \/>\n&#x1f4bb;\u4e3b\u8981\u5185\u5bb9&#xff1a;\u514d\u8d39\u529f\u80fd\u8bbe\u8ba1\u3001\u5f00\u9898\u62a5\u544a\u3001\u4efb\u52a1\u4e66\u3001\u4e2d\u671f\u68c0\u67e5PPT\u3001\u7cfb\u7edf\u529f\u80fd\u5b9e\u73b0\u3001\u4ee3\u7801\u7f16\u5199\u3001\u8bba\u6587\u7f16\u5199\u548c\u8f85\u5bfc\u3001\u8bba\u6587\u964d\u91cd\u3001\u957f\u671f\u7b54\u8fa9\u7b54\u7591\u8f85\u5bfc\u3001\u817e\u8baf\u4f1a\u8bae\u4e00\u5bf9\u4e00\u4e13\u4e1a\u8bb2\u89e3\u8f85\u5bfc\u7b54\u8fa9\u3001\u6a21\u62df\u7b54\u8fa9\u6f14\u7ec3\u3001\u548c\u7406\u89e3\u4ee3\u7801\u903b\u8f91\u601d\u8def\u3002<br \/>\n&#x1f447;&#x1f3fb; \u63a8\u8350\u8ba2\u9605<br \/>\n\u2728\u6587\u7ae0\u672b\u5c3e\u83b7\u53d6\u7a0b\u5e8f&#043;\u6570\u636e\u5e93\u2728<br \/>\n\u611f\u5174\u8da3\u7684\u53ef\u4ee5\u5148\u6536\u85cf\u8d77\u6765&#xff0c;\u8fd8\u6709\u5927\u5bb6\u5728\u6bd5\u8bbe\u9009\u9898&#xff0c;\u9879\u76ee\u4ee5\u53ca\u8bba\u6587\u7f16\u5199\u7b49\u76f8\u5173\u95ee\u9898\u90fd\u53ef\u4ee5\u7ed9\u6211\u7559\u8a00\u54a8\u8be2&#xff0c;\u5e0c\u671b\u5e2e\u52a9\u66f4\u591a\u7684\u4eba&#xff0c;\u535a\u4e3b\u514d\u8d39\u63d0\u4f9b\u9009\u9898\u6307\u5bfc\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113234915-6966d9fb6cd12.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u8be6\u7ec6\u89c6\u9891\u6f14\u793a<\/h3>\n<p>\u8bf7\u8054\u7cfb\u6211\u83b7\u53d6\u66f4\u8be6\u7ec6\u7684\u6f14\u793a\u89c6\u9891<\/p>\n<h3>\u9879\u76ee\u4ecb\u7ecd<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113234915-6966d9fbb4207.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113234916-6966d9fc404a9.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113234916-6966d9fcb6dbe.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113234917-6966d9fd3db92.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113234917-6966d9fdbb261.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113234918-6966d9fe5c007.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113234918-6966d9feec7a7.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u5168\u5957\u6587\u6863<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113234919-6966d9ff8ce14.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u6280\u672f\u6808<\/h3>\n<p>\u9879\u76ee\u91c7\u7528\u6280\u672f\u4e3b\u8981\u770b\u6807\u9898&#xff0c;Java\u9879\u76ee\u4e00\u822c\u662fSpringBoot\u3001SSM\u3001MySQL\u6570\u636e\u5e93\u5f00\u53d1<br \/>\nPython\u9879\u76ee\u4e00\u822c\u91c7\u7528Django\u3001Flask\u3001MySQL\u5f00\u53d1\u3002<br \/>\n\u9879\u76ee\u524d\u7aef\u57fa\u672c\u90fd\u662fVue\u5f00\u53d1&#xff0c;\u6781\u5c11\u6570\u91c7\u7528BootStrap\u5f00\u53d1<\/p>\n<h3>MySQL\u6570\u636e\u5e93\u4ecb\u7ecd<\/h3>\n<p>MySQL \u662f\u5168\u7403\u6700\u6d41\u884c\u7684\u5f00\u6e90\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf&#xff08;RDBMS&#xff09;&#xff0c;\u4ee5\u9ad8\u6027\u80fd\u3001\u6613\u7528\u6027\u548c\u5e7f\u6cdb\u7684\u751f\u6001\u652f\u6301\u8457\u79f0&#xff0c;\u662f Web \u5e94\u7528\u9886\u57df\u7684\u6838\u5fc3\u57fa\u7840\u8bbe\u65bd\u4e4b\u4e00\u3002<br \/>\n\u5176\u5386\u53f2\u53ef\u8ffd\u6eaf\u81f3 1995 \u5e74&#xff0c;\u7531\u745e\u5178 MySQL AB \u516c\u53f8\u5f00\u53d1&#xff0c;2008 \u5e74\u88ab Sun Microsystems \u6536\u8d2d&#xff0c;\u540e\u968f Sun \u5e76\u5165 Oracle&#xff08;2010 \u5e74&#xff09;&#xff0c;\u4f46\u59cb\u7ec8\u4fdd\u6301\u5f00\u6e90\u7248\u672c&#xff08;\u793e\u533a\u7248&#xff09;\u4e0e\u5546\u4e1a\u7248\u5e76\u884c\u53d1\u5c55\u3002<br \/>\n\u6280\u672f\u5c42\u9762&#xff0c;MySQL \u652f\u6301\u591a\u5e73\u53f0\u90e8\u7f72&#xff08;Linux\u3001Windows\u3001macOS \u7b49&#xff09;&#xff0c;\u91c7\u7528\u5206\u5c42\u67b6\u6784&#xff0c;\u6838\u5fc3\u4f18\u52bf\u5305\u62ec&#xff1a;\u7075\u6d3b\u7684\u5b58\u50a8\u5f15\u64ce\u673a\u5236&#xff08;\u5982\u9ed8\u8ba4\u7684 InnoDB \u652f\u6301\u4e8b\u52a1\u3001\u884c\u7ea7\u9501\u548c\u5916\u952e&#xff0c;MyISAM \u9002\u5408\u8bfb\u5bc6\u96c6\u573a\u666f&#xff09;&#xff1b;\u9ad8\u6548\u7684\u67e5\u8be2\u4f18\u5316\u5668&#xff0c;\u80fd\u5904\u7406\u9ad8\u5e76\u53d1\u8bfb\u5199\u8bf7\u6c42&#xff1b;\u4e30\u5bcc\u7684\u6570\u636e\u7c7b\u578b&#xff08;\u6570\u503c\u3001\u5b57\u7b26\u4e32\u3001\u65f6\u95f4\u3001JSON \u7b49&#xff09;&#xff1b;\u5b8c\u5584\u7684\u5b89\u5168\u673a\u5236&#xff08;\u7528\u6237\u6743\u9650\u7ba1\u7406\u3001SSL \u52a0\u5bc6\u4f20\u8f93&#xff09;\u3002<br \/>\n\u5e94\u7528\u573a\u666f\u6781\u4e3a\u5e7f\u6cdb&#xff1a;\u4ece\u4e2a\u4eba\u5f00\u53d1\u8005\u7684\u5c0f\u578b Web \u9879\u76ee&#xff0c;\u5230 LAMP\/LNMP \u6280\u672f\u6808\u7684\u4f01\u4e1a\u5e94\u7528&#xff0c;\u518d\u5230 Facebook\u3001Twitter \u7b49\u65e9\u671f\u5927\u578b\u4e92\u8054\u7f51\u5e73\u53f0\u7684\u6838\u5fc3\u6570\u636e\u5e93&#xff08;\u867d\u90e8\u5206\u5df2\u8fc1\u79fb&#xff0c;\u4f46\u4ecd\u4f53\u73b0\u5176\u6269\u5c55\u6027&#xff09;\u3002\u6b64\u5916&#xff0c;MySQL \u8fd8\u5e38\u4f5c\u4e3a\u6570\u636e\u4ed3\u5e93\u7684\u524d\u7f6e\u5b58\u50a8\u6216\u7269\u8054\u7f51\u6570\u636e\u7684\u6c47\u805a\u5c42\u3002<br \/>\n\u751f\u6001\u65b9\u9762&#xff0c;MySQL \u62e5\u6709\u6210\u719f\u7684\u5de5\u5177\u94fe&#xff08;\u5982 phpMyAdmin\u3001MySQL Workbench&#xff09;\u3001\u6d3b\u8dc3\u7684\u5f00\u6e90\u793e\u533a&#xff0c;\u4ee5\u53ca\u5927\u91cf\u7b2c\u4e09\u65b9\u96c6\u6210&#xff08;\u5982\u4e0e Python\u3001Java \u7b49\u8bed\u8a00\u7684\u65e0\u7f1d\u5bf9\u63a5&#xff09;&#xff0c;\u964d\u4f4e\u4e86\u5b66\u4e60\u548c\u8fd0\u7ef4\u6210\u672c\u3002<br \/>\n\u4f5c\u4e3a\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7684\u4ee3\u8868\u4e4b\u4e00&#xff0c;MySQL \u51ed\u501f\u5f00\u6e90\u5c5e\u6027\u4e0e\u7a33\u5b9a\u8868\u73b0&#xff0c;\u81f3\u4eca\u4ecd\u662f\u5168\u7403\u5f00\u53d1\u8005\u548c\u4f01\u4e1a\u7684\u9996\u9009\u6570\u636e\u5e93\u4e4b\u4e00&#xff0c;\u5728\u6570\u636e\u5b58\u50a8\u9886\u57df\u5360\u636e\u91cd\u8981\u5730\u4f4d\u3002<\/p>\n<h3>Vue.js\u4ecb\u7ecd<\/h3>\n<p>Vue.js \u662f\u4e00\u6b3e\u7531\u5c24\u96e8\u6eaa\u4e8e 2014 \u5e74\u53d1\u5e03\u7684\u6e10\u8fdb\u5f0f JavaScript \u6846\u67b6&#xff0c;\u4e13\u6ce8\u4e8e\u6784\u5efa\u7528\u6237\u754c\u9762&#xff0c;\u4ee5 \u201c\u6613\u7528\u3001\u7075\u6d3b\u3001\u9ad8\u6548\u201d \u8457\u79f0&#xff0c;\u662f\u524d\u7aef\u4e09\u5927\u4e3b\u6d41\u6846\u67b6&#xff08;Vue\u3001React\u3001Angular&#xff09;\u4e4b\u4e00\u3002\u5176\u8bbe\u8ba1\u7406\u5ff5\u5f3a\u8c03 \u201c\u6e10\u8fdb\u5f0f\u201d\u2014\u2014 \u5f00\u53d1\u8005\u53ef\u6309\u9700\u5f15\u5165\u529f\u80fd&#xff0c;\u4ece\u7b80\u5355\u7684\u9875\u9762\u589e\u5f3a\u5230\u590d\u6742\u7684\u5355\u9875\u5e94\u7528&#xff08;SPA&#xff09;&#xff0c;\u65e0\u9700\u5168\u6808\u91cd\u6784&#xff0c;\u964d\u4f4e\u4e86\u5b66\u4e60\u4e0e\u8fc1\u79fb\u6210\u672c\u3002<br \/>\n\u6838\u5fc3\u7279\u6027\u65b9\u9762&#xff0c;Vue \u7684\u54cd\u5e94\u5f0f\u7cfb\u7edf\u662f\u7075\u9b42&#xff1a;Vue 2 \u57fa\u4e8eObject.defineProperty\u5b9e\u73b0\u6570\u636e\u4e0e\u89c6\u56fe\u7684\u81ea\u52a8\u540c\u6b65&#xff0c;Vue 3 \u5219\u5347\u7ea7\u4e3aProxy&#xff0c;\u652f\u6301\u66f4\u6df1\u5c42\u6b21\u7684\u6570\u636e\u76d1\u542c\u4e0e\u66f4\u4f18\u6027\u80fd\u3002\u7ec4\u4ef6\u5316\u5f00\u53d1\u662f\u5176\u53e6\u4e00\u6838\u5fc3&#xff0c;\u901a\u8fc7\u5355\u6587\u4ef6\u7ec4\u4ef6&#xff08;.vue\u6587\u4ef6&#xff09;\u5c06\u6a21\u677f&#xff08;template&#xff09;\u3001\u903b\u8f91&#xff08;script&#xff09;\u3001\u6837\u5f0f&#xff08;style&#xff09;\u5c01\u88c5\u4e3a\u72ec\u7acb\u5355\u5143&#xff0c;\u5b9e\u73b0\u4ee3\u7801\u590d\u7528\u4e0e\u7ef4\u62a4\u6027\u63d0\u5347\u3002\u6b64\u5916&#xff0c;Vue \u63d0\u4f9b\u7b80\u6d01\u7684\u6307\u4ee4\u7cfb\u7edf&#xff08;\u5982v-if\u6761\u4ef6\u6e32\u67d3\u3001v-for\u5217\u8868\u5faa\u73af\u3001v-model\u53cc\u5411\u7ed1\u5b9a&#xff09;&#xff0c;\u5927\u5e45\u7b80\u5316 DOM \u64cd\u4f5c&#xff1b;\u865a\u62df DOM\u673a\u5236\u5219\u901a\u8fc7\u6279\u91cf\u5bf9\u6bd4\u4e0e\u66f4\u65b0&#xff0c;\u663e\u8457\u63d0\u5347\u6e32\u67d3\u6548\u7387\u3002<br \/>\nVue \u7684\u4f18\u52bf\u5728\u4e8e\u4f4e\u95e8\u69db\u9ad8\u4e0a\u9650&#xff1a;\u65b0\u624b\u53ef\u5feb\u901f\u901a\u8fc7\u6a21\u677f\u8bed\u6cd5\u4e0a\u624b&#xff0c;\u8fdb\u9636\u5f00\u53d1\u8005\u53ef\u501f\u52a9 Vue 3 \u7684 Composition API \u5b9e\u73b0\u66f4\u7075\u6d3b\u7684\u903b\u8f91\u590d\u7528\u4e0e\u7c7b\u578b\u652f\u6301\u3002\u5176\u751f\u6001\u4f53\u7cfb\u6210\u719f&#xff0c;\u914d\u5957\u5de5\u5177\u94fe\u5b8c\u5584&#xff1a;Vue Router \u8d1f\u8d23\u8def\u7531\u7ba1\u7406&#xff0c;Pinia&#xff08;Vue 3 \u63a8\u8350&#xff09;\/Vuex \u5904\u7406\u72b6\u6001\u5171\u4eab&#xff0c;Vite \u63d0\u4f9b\u6781\u901f\u6784\u5efa\u4f53\u9a8c&#xff0c;Element Plus\u3001Ant Design Vue \u7b49 UI \u5e93\u52a0\u901f\u5f00\u53d1\u3002<br \/>\n\u5e94\u7528\u573a\u666f\u5e7f\u6cdb&#xff0c;\u4ece\u4e2a\u4eba\u535a\u5ba2\u3001\u4f01\u4e1a\u5b98\u7f51\u5230\u590d\u6742\u7684\u7535\u5546\u5e73\u53f0&#xff08;\u5982\u5c0f\u7c73\u5546\u57ce\u90e8\u5206\u9875\u9762&#xff09;\u3001\u540e\u53f0\u7ba1\u7406\u7cfb\u7edf&#xff0c;\u751a\u81f3\u901a\u8fc7 uni-app \u7b49\u8de8\u7aef\u6846\u67b6\u652f\u6301\u79fb\u52a8\u7aef\u5f00\u53d1\u3002\u51ed\u501f\u8f7b\u91cf\u8bbe\u8ba1\u4e0e\u793e\u533a\u6d3b\u529b&#xff0c;Vue \u5df2\u6210\u4e3a\u5168\u7403\u5f00\u53d1\u8005\u6784\u5efa\u73b0\u4ee3 Web \u5e94\u7528\u7684\u91cd\u8981\u9009\u62e9\u3002<\/p>\n<h3>\u6838\u5fc3\u4ee3\u7801<\/h3>\n<p> <span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> defineStore <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;pinia&#039;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> router<span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">{<\/span> dynamicRoutes <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;&#064;\/router&#039;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> filterRoutes <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;&#064;\/utils\/permission&#039;<\/span><\/p>\n<p><span class=\"token keyword\">export<\/span> <span class=\"token keyword\">const<\/span> useUserStore <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">defineStore<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;user&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token function-variable function\">state<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token literal-property property\">token<\/span><span class=\"token operator\">:<\/span> localStorage<span class=\"token punctuation\">.<\/span><span class=\"token function\">getItem<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;token&#039;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">||<\/span> <span class=\"token string\">&#039;&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token literal-property property\">userInfo<\/span><span class=\"token operator\">:<\/span> <span class=\"token constant\">JSON<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">parse<\/span><span class=\"token punctuation\">(<\/span>localStorage<span class=\"token punctuation\">.<\/span><span class=\"token function\">getItem<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;userInfo&#039;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">||<\/span> <span class=\"token keyword\">null<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token literal-property property\">roles<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ \u7528\u6237\u89d2\u8272\u5217\u8868<\/span><br \/>\n    <span class=\"token literal-property property\">routes<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token comment\">\/\/ \u52a8\u6001\u751f\u6210\u7684\u8def\u7531<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span><\/p>\n<p>  <span class=\"token literal-property property\">getters<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token function-variable function\">isLoggedIn<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token parameter\">state<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token operator\">!<\/span><span class=\"token operator\">!<\/span>state<span class=\"token punctuation\">.<\/span>token<span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token function-variable function\">menus<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token parameter\">state<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u4ece\u52a8\u6001\u8def\u7531\u4e2d\u63d0\u53d6\u83dc\u5355&#xff08;\u8fc7\u6ee4\u6389\u9690\u85cf\u9879&#xff09;<\/span><br \/>\n      <span class=\"token keyword\">return<\/span> state<span class=\"token punctuation\">.<\/span>routes<span class=\"token punctuation\">.<\/span><span class=\"token function\">filter<\/span><span class=\"token punctuation\">(<\/span><span class=\"token parameter\">route<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token operator\">!<\/span>route<span class=\"token punctuation\">.<\/span>meta<span class=\"token operator\">?.<\/span>hidden<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">map<\/span><span class=\"token punctuation\">(<\/span><span class=\"token parameter\">route<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token literal-property property\">name<\/span><span class=\"token operator\">:<\/span> route<span class=\"token punctuation\">.<\/span>name<span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token literal-property property\">path<\/span><span class=\"token operator\">:<\/span> route<span class=\"token punctuation\">.<\/span>path<span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token literal-property property\">title<\/span><span class=\"token operator\">:<\/span> route<span class=\"token punctuation\">.<\/span>meta<span class=\"token operator\">?.<\/span>title <span class=\"token operator\">||<\/span> <span class=\"token string\">&#039;&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token literal-property property\">children<\/span><span class=\"token operator\">:<\/span> route<span class=\"token punctuation\">.<\/span>children<span class=\"token operator\">?.<\/span><span class=\"token function\">filter<\/span><span class=\"token punctuation\">(<\/span><span class=\"token parameter\">child<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token operator\">!<\/span>child<span class=\"token punctuation\">.<\/span>meta<span class=\"token operator\">?.<\/span>hidden<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">map<\/span><span class=\"token punctuation\">(<\/span><span class=\"token parameter\">child<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n          <span class=\"token literal-property property\">name<\/span><span class=\"token operator\">:<\/span> child<span class=\"token punctuation\">.<\/span>name<span class=\"token punctuation\">,<\/span><br \/>\n          <span class=\"token literal-property property\">path<\/span><span class=\"token operator\">:<\/span> child<span class=\"token punctuation\">.<\/span>path<span class=\"token punctuation\">,<\/span><br \/>\n          <span class=\"token literal-property property\">title<\/span><span class=\"token operator\">:<\/span> child<span class=\"token punctuation\">.<\/span>meta<span class=\"token operator\">?.<\/span>title <span class=\"token operator\">||<\/span> <span class=\"token string\">&#039;&#039;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">||<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><\/p>\n<p>  <span class=\"token literal-property property\">actions<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token comment\">\/\/ \u767b\u5f55<\/span><br \/>\n    <span class=\"token function\">login<\/span><span class=\"token punctuation\">(<\/span><span class=\"token parameter\">credentials<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u6a21\u62dfAPI\u8bf7\u6c42&#xff0c;\u5b9e\u9645\u9879\u76ee\u66ff\u6362\u4e3a\u771f\u5b9e\u63a5\u53e3<\/span><br \/>\n      <span class=\"token keyword\">const<\/span> mockUser <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token literal-property property\">username<\/span><span class=\"token operator\">:<\/span> credentials<span class=\"token punctuation\">.<\/span>username<span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token literal-property property\">roles<\/span><span class=\"token operator\">:<\/span> credentials<span class=\"token punctuation\">.<\/span>username <span class=\"token operator\">&#061;&#061;&#061;<\/span> <span class=\"token string\">&#039;admin&#039;<\/span> <span class=\"token operator\">?<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;admin&#039;<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;editor&#039;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><\/p>\n<p>      <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>token <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#039;mock-token-&#039;<\/span> <span class=\"token operator\">&#043;<\/span> Date<span class=\"token punctuation\">.<\/span><span class=\"token function\">now<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n      <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>userInfo <span class=\"token operator\">&#061;<\/span> mockUser<br \/>\n      <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>roles <span class=\"token operator\">&#061;<\/span> mockUser<span class=\"token punctuation\">.<\/span>roles<\/p>\n<p>      <span class=\"token comment\">\/\/ \u4fdd\u5b58\u5230\u672c\u5730\u5b58\u50a8<\/span><br \/>\n      localStorage<span class=\"token punctuation\">.<\/span><span class=\"token function\">setItem<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;token&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>token<span class=\"token punctuation\">)<\/span><br \/>\n      localStorage<span class=\"token punctuation\">.<\/span><span class=\"token function\">setItem<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;userInfo&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token constant\">JSON<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">stringify<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>userInfo<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>      <span class=\"token comment\">\/\/ \u751f\u6210\u52a8\u6001\u8def\u7531<\/span><br \/>\n      <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">generateRoutes<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n      <span class=\"token keyword\">return<\/span> Promise<span class=\"token punctuation\">.<\/span><span class=\"token function\">resolve<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u751f\u6210\u52a8\u6001\u8def\u7531<\/span><br \/>\n    <span class=\"token function\">generateRoutes<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u6839\u636e\u89d2\u8272\u8fc7\u6ee4\u8def\u7531<\/span><br \/>\n      <span class=\"token keyword\">const<\/span> accessibleRoutes <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">filterRoutes<\/span><span class=\"token punctuation\">(<\/span>dynamicRoutes<span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>roles<span class=\"token punctuation\">)<\/span><br \/>\n      <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>routes <span class=\"token operator\">&#061;<\/span> accessibleRoutes<\/p>\n<p>      <span class=\"token comment\">\/\/ \u52a8\u6001\u6dfb\u52a0\u5230\u8def\u7531\u5b9e\u4f8b<\/span><br \/>\n      accessibleRoutes<span class=\"token punctuation\">.<\/span><span class=\"token function\">forEach<\/span><span class=\"token punctuation\">(<\/span><span class=\"token parameter\">route<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        router<span class=\"token punctuation\">.<\/span><span class=\"token function\">addRoute<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;Layout&#039;<\/span><span class=\"token punctuation\">,<\/span> route<span class=\"token punctuation\">)<\/span> <span class=\"token comment\">\/\/ \u6ce8\u610f&#xff1a;\u6dfb\u52a0\u5230Layout\u7684children\u4e2d<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u767b\u51fa<\/span><br \/>\n    <span class=\"token function\">logout<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>token <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#039;&#039;<\/span><br \/>\n      <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>userInfo <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">null<\/span><br \/>\n      <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>roles <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><br \/>\n      <span class=\"token keyword\">this<\/span><span class=\"token punctuation\">.<\/span>routes <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><\/p>\n<p>      localStorage<span class=\"token punctuation\">.<\/span><span class=\"token function\">removeItem<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;token&#039;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n      localStorage<span class=\"token punctuation\">.<\/span><span class=\"token function\">removeItem<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;userInfo&#039;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>      <span class=\"token comment\">\/\/ \u91cd\u7f6e\u8def\u7531&#xff08;\u4fdd\u7559\u9759\u6001\u8def\u7531&#xff09;<\/span><br \/>\n      router<span class=\"token punctuation\">.<\/span><span class=\"token function\">replace<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;\/login&#039;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h3>\u6e90\u7801\u83b7\u53d6<\/h3>\n<p>\u6587\u7ae0\u4e0b\u65b9\u540d\u7247\u8054\u7cfb\u6211\u5373\u53ef~<br \/>\n\u270c&#x1f497;\u5927\u5bb6\u70b9\u8d5e\u3001\u6536\u85cf\u3001\u5173\u6ce8\u3001\u8bc4\u8bba\u5566 \u3001\u67e5\u770b\u270c&#x1f497;<br \/>\n&#x1f447;&#x1f3fb;\u83b7\u53d6\u8054\u7cfb\u65b9\u5f0f&#x1f447;&#x1f3fb;<br \/>\n\u7cbe\u5f69\u4e13\u680f\u63a8\u8350\u8ba2\u9605&#xff1a;\u5728\u4e0b\u65b9\u4e13\u680f&#x1f447;&#x1f3fb;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8bfe\u9898\u4ecb\u7ecd\u672c\u8bfe\u9898\u65e8\u5728\u8bbe\u8ba1\u5e76\u5b9e\u73b0\u4e00\u6b3e\u57fa\u4e8eSpringBoot\u6846\u67b6\u7684\u667a\u80fd\u5783\u573e\u5206\u7c7b\u52a9\u624b\u7cfb\u7edf&#xff0c;\u4ee5\u89e3\u51b3\u5c45\u6c11\u5783\u573e\u5206\u7c7b\u8ba4\u77e5\u4e0d\u8db3\u3001\u5206\u7c7b\u5224\u65ad\u56f0\u96be\u3001\u5206\u7c7b\u77e5\u8bc6\u83b7\u53d6\u96f6\u6563\u3001\u6295\u653e\u6307\u5f15\u4e0d\u4fbf\u6377\u7b49\u95ee\u9898&#xff0c;\u642d\u5efa\u4e2a\u6027\u5316\u3001\u667a\u80fd\u5316\u3001\u4fbf\u6377\u5316\u7684\u5783\u573e\u5206\u7c7b\u8f85\u52a9\u670d\u52a1\u5e73\u53f0\u3002\u968f\u7740\u751f\u6001\u6587\u660e\u5efa\u8bbe\u63a8\u8fdb&#xff0c;\u5783\u573e\u5206\u7c7b\u6210\u4e3a\u57ce\u5e02\u73af\u5883\u6cbb\u7406\u7684\u91cd\u8981\u4e3e\u63aa&#xff0c;\u800c\u5c45\u6c11\u5728\u5b9e\u9645\u5206\u7c7b\u8fc7\u7a0b\u4e2d\u666e\u904d\u5b58\u5728\u5bf9\u5783\u573e\u54c1\u7c7b\u754c\u5b9a\u6a21\u7cca\u3001\u5206\u7c7b\u6807\u51c6\u8bb0\u5fc6\u4e0d\u7262\u3001\u7f3a\u4e4f\u5373\u65f6\u6307\u5bfc\u7b49\u75db\u70b9&#xff0c;\u4f20\u7edf\u5206\u7c7b\u6307\u5bfc\u6a21\u5f0f&#xff08;\u5982\u5ba3\u4f20\u624b\u518c\u3001\u73b0\u573a<\/p>\n","protected":false},"author":2,"featured_media":59599,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,98,292],"topic":[],"class_list":["post-59608","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-spring-boot","tag-292"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u4e8eSpringBoot\u7684\u667a\u80fd\u5783\u573e\u5206\u7c7b\u52a9\u624b\u7cfb\u7edf(\u6e90\u7801+lw+\u90e8\u7f72\u6587\u6863+\u8bb2\u89e3\u7b49) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/59608.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u4e8eSpringBoot\u7684\u667a\u80fd\u5783\u573e\u5206\u7c7b\u52a9\u624b\u7cfb\u7edf(\u6e90\u7801+lw+\u90e8\u7f72\u6587\u6863+\u8bb2\u89e3\u7b49) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u8bfe\u9898\u4ecb\u7ecd\u672c\u8bfe\u9898\u65e8\u5728\u8bbe\u8ba1\u5e76\u5b9e\u73b0\u4e00\u6b3e\u57fa\u4e8eSpringBoot\u6846\u67b6\u7684\u667a\u80fd\u5783\u573e\u5206\u7c7b\u52a9\u624b\u7cfb\u7edf&#xff0c;\u4ee5\u89e3\u51b3\u5c45\u6c11\u5783\u573e\u5206\u7c7b\u8ba4\u77e5\u4e0d\u8db3\u3001\u5206\u7c7b\u5224\u65ad\u56f0\u96be\u3001\u5206\u7c7b\u77e5\u8bc6\u83b7\u53d6\u96f6\u6563\u3001\u6295\u653e\u6307\u5f15\u4e0d\u4fbf\u6377\u7b49\u95ee\u9898&#xff0c;\u642d\u5efa\u4e2a\u6027\u5316\u3001\u667a\u80fd\u5316\u3001\u4fbf\u6377\u5316\u7684\u5783\u573e\u5206\u7c7b\u8f85\u52a9\u670d\u52a1\u5e73\u53f0\u3002\u968f\u7740\u751f\u6001\u6587\u660e\u5efa\u8bbe\u63a8\u8fdb&#xff0c;\u5783\u573e\u5206\u7c7b\u6210\u4e3a\u57ce\u5e02\u73af\u5883\u6cbb\u7406\u7684\u91cd\u8981\u4e3e\u63aa&#xff0c;\u800c\u5c45\u6c11\u5728\u5b9e\u9645\u5206\u7c7b\u8fc7\u7a0b\u4e2d\u666e\u904d\u5b58\u5728\u5bf9\u5783\u573e\u54c1\u7c7b\u754c\u5b9a\u6a21\u7cca\u3001\u5206\u7c7b\u6807\u51c6\u8bb0\u5fc6\u4e0d\u7262\u3001\u7f3a\u4e4f\u5373\u65f6\u6307\u5bfc\u7b49\u75db\u70b9&#xff0c;\u4f20\u7edf\u5206\u7c7b\u6307\u5bfc\u6a21\u5f0f&#xff08;\u5982\u5ba3\u4f20\u624b\u518c\u3001\u73b0\u573a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/59608.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-13T23:49:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113234915-6966d9fb6cd12.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/59608.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/59608.html\",\"name\":\"\u57fa\u4e8eSpringBoot\u7684\u667a\u80fd\u5783\u573e\u5206\u7c7b\u52a9\u624b\u7cfb\u7edf(\u6e90\u7801+lw+\u90e8\u7f72\u6587\u6863+\u8bb2\u89e3\u7b49) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-13T23:49:21+00:00\",\"dateModified\":\"2026-01-13T23:49:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/59608.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/59608.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/59608.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u57fa\u4e8eSpringBoot\u7684\u667a\u80fd\u5783\u573e\u5206\u7c7b\u52a9\u624b\u7cfb\u7edf(\u6e90\u7801+lw+\u90e8\u7f72\u6587\u6863+\u8bb2\u89e3\u7b49)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u57fa\u4e8eSpringBoot\u7684\u667a\u80fd\u5783\u573e\u5206\u7c7b\u52a9\u624b\u7cfb\u7edf(\u6e90\u7801+lw+\u90e8\u7f72\u6587\u6863+\u8bb2\u89e3\u7b49) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/59608.html","og_locale":"zh_CN","og_type":"article","og_title":"\u57fa\u4e8eSpringBoot\u7684\u667a\u80fd\u5783\u573e\u5206\u7c7b\u52a9\u624b\u7cfb\u7edf(\u6e90\u7801+lw+\u90e8\u7f72\u6587\u6863+\u8bb2\u89e3\u7b49) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u8bfe\u9898\u4ecb\u7ecd\u672c\u8bfe\u9898\u65e8\u5728\u8bbe\u8ba1\u5e76\u5b9e\u73b0\u4e00\u6b3e\u57fa\u4e8eSpringBoot\u6846\u67b6\u7684\u667a\u80fd\u5783\u573e\u5206\u7c7b\u52a9\u624b\u7cfb\u7edf&#xff0c;\u4ee5\u89e3\u51b3\u5c45\u6c11\u5783\u573e\u5206\u7c7b\u8ba4\u77e5\u4e0d\u8db3\u3001\u5206\u7c7b\u5224\u65ad\u56f0\u96be\u3001\u5206\u7c7b\u77e5\u8bc6\u83b7\u53d6\u96f6\u6563\u3001\u6295\u653e\u6307\u5f15\u4e0d\u4fbf\u6377\u7b49\u95ee\u9898&#xff0c;\u642d\u5efa\u4e2a\u6027\u5316\u3001\u667a\u80fd\u5316\u3001\u4fbf\u6377\u5316\u7684\u5783\u573e\u5206\u7c7b\u8f85\u52a9\u670d\u52a1\u5e73\u53f0\u3002\u968f\u7740\u751f\u6001\u6587\u660e\u5efa\u8bbe\u63a8\u8fdb&#xff0c;\u5783\u573e\u5206\u7c7b\u6210\u4e3a\u57ce\u5e02\u73af\u5883\u6cbb\u7406\u7684\u91cd\u8981\u4e3e\u63aa&#xff0c;\u800c\u5c45\u6c11\u5728\u5b9e\u9645\u5206\u7c7b\u8fc7\u7a0b\u4e2d\u666e\u904d\u5b58\u5728\u5bf9\u5783\u573e\u54c1\u7c7b\u754c\u5b9a\u6a21\u7cca\u3001\u5206\u7c7b\u6807\u51c6\u8bb0\u5fc6\u4e0d\u7262\u3001\u7f3a\u4e4f\u5373\u65f6\u6307\u5bfc\u7b49\u75db\u70b9&#xff0c;\u4f20\u7edf\u5206\u7c7b\u6307\u5bfc\u6a21\u5f0f&#xff08;\u5982\u5ba3\u4f20\u624b\u518c\u3001\u73b0\u573a","og_url":"https:\/\/www.wsisp.com\/helps\/59608.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-13T23:49:21+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113234915-6966d9fb6cd12.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/59608.html","url":"https:\/\/www.wsisp.com\/helps\/59608.html","name":"\u57fa\u4e8eSpringBoot\u7684\u667a\u80fd\u5783\u573e\u5206\u7c7b\u52a9\u624b\u7cfb\u7edf(\u6e90\u7801+lw+\u90e8\u7f72\u6587\u6863+\u8bb2\u89e3\u7b49) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-13T23:49:21+00:00","dateModified":"2026-01-13T23:49:21+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/59608.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/59608.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/59608.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u57fa\u4e8eSpringBoot\u7684\u667a\u80fd\u5783\u573e\u5206\u7c7b\u52a9\u624b\u7cfb\u7edf(\u6e90\u7801+lw+\u90e8\u7f72\u6587\u6863+\u8bb2\u89e3\u7b49)"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/59608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=59608"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/59608\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/59599"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=59608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=59608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=59608"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=59608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}