{"id":107515,"date":"2026-09-19T20:20:31","date_gmt":"2026-09-19T12:20:31","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/107515.html"},"modified":"2026-09-19T20:20:31","modified_gmt":"2026-09-19T12:20:31","slug":"springboot3vue3-%e4%bc%81%e4%b8%9a%e7%ba%a7%e7%ae%a1%e7%90%86%e5%b9%b3%e5%8f%b0%e6%9e%b6%e6%9e%84%ef%bc%9a%e5%a4%9a%e7%a7%9f%e6%88%b7%e3%80%81rbac%e3%80%81%e6%95%b0%e6%8d%ae%e6%9d%83%e9%99%90","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/107515.html","title":{"rendered":"SpringBoot3+Vue3 \u4f01\u4e1a\u7ea7\u7ba1\u7406\u5e73\u53f0\u67b6\u6784\uff1a\u591a\u79df\u6237\u3001RBAC\u3001\u6570\u636e\u6743\u9650\u3001\u5de5\u4f5c\u6d41\u4e0e\u5fae\u670d\u52a1\u4e00\u6b21\u8bb2\u900f"},"content":{"rendered":"<h2>SpringBoot3&#043;Vue3 \u4f01\u4e1a\u7ea7\u7ba1\u7406\u5e73\u53f0\u67b6\u6784&#xff1a;\u591a\u79df\u6237\u3001RBAC\u3001\u6570\u636e\u6743\u9650\u3001\u5de5\u4f5c\u6d41\u4e0e\u5fae\u670d\u52a1\u4e00\u6b21\u8bb2\u900f<\/h2>\n<p>&#x1f310; **\u6587\u6863\u5730\u5740**&#xff1a;https:\/\/ruoyioffice.com<\/p>\n<p>&#x1f4e6; **\u6e90\u78011\u00b7GitHub**&#xff1a;https:\/\/github.com\/yuqing2026\/ruoyi-office<\/p>\n<p>&#x1f4e6; **\u6e90\u78012\u00b7GitCode**&#xff1a;https:\/\/gitcode.com\/zhouzhongyan\/ruoyi-office<\/p>\n<p>&#x1f4e6; **\u6e90\u78013\u00b7Gitee**&#xff1a;https:\/\/gitee.com\/yqzy1688\/ruoyi-office<\/p>\n<p>&#x1f4ac; **\u5fae\u4fe1**&#xff1a;17156169080&#xff08;\u5907\u6ce8\u300cRuoYi Office\u300d&#xff09;<\/p>\n<p>\u4f01\u4e1a\u7ea7\u540e\u53f0\u6700\u5371\u9669\u7684\u9519\u89c9&#xff0c;\u662f\u201c\u767b\u5f55\u6210\u529f\u3001\u5de6\u4fa7\u6709\u83dc\u5355\u201d\u5c31\u7b49\u4e8e\u6743\u9650\u548c\u67b6\u6784\u5df2\u7ecf\u5b8c\u6210\u3002\u771f\u6b63\u4e0a\u7ebf\u540e\u4f1a\u540c\u65f6\u9047\u5230\u4e94\u4e2a\u95ee\u9898&#xff1a;\u8fd9\u4e2a\u4eba\u662f\u8c01&#xff1f;\u6570\u636e\u5c5e\u4e8e\u54ea\u5bb6\u516c\u53f8&#xff1f;\u4ed6\u80fd\u64cd\u4f5c\u54ea\u4e9b\u529f\u80fd&#xff1f;\u4ed6\u80fd\u770b\u54ea\u4e9b\u884c&#xff1f;\u4e1a\u52a1\u5355\u636e\u5ba1\u6279\u540e\u5982\u4f55\u56de\u5230\u4e1a\u52a1\u53f0\u8d26&#xff1f;\u5982\u679c\u7cfb\u7edf\u8fd8\u8981\u652f\u6301\u5355\u4f53\u548c\u5fae\u670d\u52a1\u4e24\u79cd\u90e8\u7f72&#xff0c;\u8fd9\u4e9b\u4e0a\u4e0b\u6587\u53c8\u600e\u6837\u8de8\u7f51\u5173\u3001RPC\u3001\u7f13\u5b58\u548c\u6d88\u606f\u961f\u5217\u4f20\u9012&#xff1f;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919122024-6aae7e0846b1c.png\" alt=\"\u4e00\u6761\u8bf7\u6c42\u7a7f\u8fc7\u4f01\u4e1a\u7ba1\u7406\u5e73\u53f0\u4e94\u5c42\u67b6\u6784\" \/><\/p>\n<p>*\u25b2 \u4e00\u6761\u4e1a\u52a1\u8bf7\u6c42\u8981\u4f9d\u6b21\u7ecf\u8fc7\u5ba2\u6237\u7aef\u3001\u7f51\u5173\u3001\u8eab\u4efd\u4e0e\u529f\u80fd\u6743\u9650\u3001\u79df\u6237\u548c\u6570\u636e\u6743\u9650&#xff0c;\u6700\u540e\u624d\u8fdb\u5165\u4e1a\u52a1\u4e0e\u5de5\u4f5c\u6d41*<\/p>\n<p>&#8212;<\/p>\n<h3>\u5f15\u8a00&#xff1a;\u5148\u56de\u7b54\u6743\u9650\u56db\u95ee&#xff0c;\u518d\u8c08\u6a21\u5757\u6709\u591a\u5c11<\/h3>\n<p>\u4e00\u4e2a\u4f01\u4e1a\u7ba1\u7406\u5e73\u53f0\u53ef\u4ee5\u6709 OA\u3001HRM\u3001CRM\u3001ERP\u3001\u8d22\u52a1\u3001\u8d44\u4ea7\u548c\u9879\u76ee\u7b49\u51e0\u5341\u4e2a\u6a21\u5757&#xff0c;\u4f46\u67b6\u6784\u5e95\u5ea7\u5fc5\u987b\u5148\u56de\u7b54\u56db\u4e2a\u95ee\u9898&#xff1a;<\/p>\n<p>\u8c01\u767b\u5f55&#xff1f;       \u2192 Spring Security &#043; OAuth2 Token<br \/>\n\u5c5e\u4e8e\u54ea\u5bb6&#xff1f;     \u2192 tenant-id &#043; \u79df\u6237\u4e0a\u4e0b\u6587<br \/>\n\u80fd\u505a\u4ec0\u4e48&#xff1f;     \u2192 RBAC \u83dc\u5355\u3001\u6309\u94ae\u4e0e\u63a5\u53e3\u6743\u9650<br \/>\n\u80fd\u770b\u54ea\u4e9b\u884c&#xff1f;   \u2192 DataScope &#043; SQL \u6539\u5199<\/p>\n<p>\u5de5\u4f5c\u6d41\u5219\u89e3\u51b3\u7b2c\u4e94\u4e2a\u95ee\u9898&#xff1a;\u4e00\u5f20\u4e1a\u52a1\u5355\u5982\u4f55\u6309\u89c4\u5219\u6d41\u8f6c&#xff0c;\u5e76\u628a\u6700\u7ec8\u7ed3\u679c\u56de\u5199\u5230\u8f66\u8f86\u3001\u5408\u540c\u3001\u5458\u5de5\u3001\u8d44\u4ea7\u3001\u5e93\u5b58\u6216\u8d22\u52a1\u53f0\u8d26\u3002<\/p>\n<p>\u672c\u6587\u4e0d\u5206\u522b\u91cd\u5199\u4e00\u7bc7 RBAC\u3001\u4e00\u7bc7\u591a\u79df\u6237\u548c\u4e00\u7bc7\u5fae\u670d\u52a1\u6559\u7a0b&#xff0c;\u800c\u662f\u6cbf\u7740\u4e00\u6761 HTTP \u8bf7\u6c42&#xff0c;\u89c2\u5bdf\u8fd9\u4e9b\u6a2a\u5207\u80fd\u529b\u5982\u4f55\u53e0\u52a0\u3002<\/p>\n<p>&#8212;<\/p>\n<h3>\u4e00\u3001\u603b\u4f53\u5206\u5c42&#xff1a;\u6846\u67b6 Starter \u627f\u8f7d\u6a2a\u5207\u80fd\u529b&#xff0c;\u4e1a\u52a1\u6a21\u5757\u4fdd\u6301\u8fb9\u754c<\/h3>\n<p>\u540e\u7aef\u4e0d\u662f\u4e00\u4e2a\u5de8\u5927\u7684 service \u76ee\u5f55&#xff0c;\u800c\u662f\u4e09\u5c42\u7ed3\u6784&#xff1a;<\/p>\n<p>****-framework<br \/>\n  \u251c\u2500 security \/ tenant \/ data-permission<br \/>\n  \u251c\u2500 web \/ mybatis \/ redis \/ rpc \/ mq<br \/>\n  \u2514\u2500 \u901a\u7528\u81ea\u52a8\u914d\u7f6e Starter<\/p>\n<p>****-module-xxx<br \/>\n  \u251c\u2500 xxx-api      \u5bf9\u5916 DTO\u3001\u679a\u4e3e\u3001RPC \u5951\u7ea6<br \/>\n  \u2514\u2500 xxx-server   Controller\u3001Service\u3001Mapper\u3001\u4e1a\u52a1\u5b9e\u73b0<\/p>\n<p>\u542f\u52a8\u5c42<br \/>\n  \u251c\u2500 ****-server   \u5355\u4f53\u805a\u5408\u5165\u53e3<br \/>\n  \u2514\u2500 ****-gateway  \u5fae\u670d\u52a1\u7edf\u4e00\u5165\u53e3<\/p>\n<p>system\u3001infra\u3001bpm \u63d0\u4f9b\u5e73\u53f0\u6838\u5fc3&#xff1b;oa\u3001hrm\u3001crm\u3001erp\u3001finance\u3001asset\u3001project \u7b49\u6309\u4e1a\u52a1\u57df\u62c6\u5206\u3002\u6a21\u5757\u95f4\u4f18\u5148\u4f9d\u8d56 *-api \u5951\u7ea6&#xff0c;\u4e0d\u76f4\u63a5\u7a7f\u900f\u5230\u53e6\u4e00\u4e2a\u6a21\u5757\u7684 Mapper\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919122024-6aae7e08a023f.png\" alt=\"\u4f01\u4e1a\u7ba1\u7406\u5e73\u53f0\u5de5\u4f5c\u53f0\u4e0e\u591a\u4e1a\u52a1\u57df\u5165\u53e3\" \/><\/p>\n<p>*\u25b2 \u7528\u6237\u770b\u5230\u7684\u662f\u4e00\u4e2a\u7edf\u4e00\u5de5\u4f5c\u53f0&#xff0c;\u5e95\u5c42\u4ecd\u6309\u7cfb\u7edf\u3001\u6d41\u7a0b\u548c\u4e1a\u52a1\u57df\u4fdd\u6301\u6a21\u5757\u8fb9\u754c*<\/p>\n<h4>1.1 \u4e3a\u4ec0\u4e48\u6a2a\u5207\u80fd\u529b\u8981\u505a\u6210 Starter<\/h4>\n<p>\u5982\u679c\u6bcf\u4e2a\u6a21\u5757\u5206\u522b\u5b9e\u73b0 Token \u89e3\u6790\u3001\u79df\u6237\u8fc7\u6ee4\u548c\u6570\u636e\u6743\u9650&#xff0c;\u89c4\u5219\u5f88\u5feb\u4f1a\u6f02\u79fb&#xff1a;OA \u5fd8\u4e86\u8fc7\u6ee4\u79df\u6237&#xff0c;CRM \u7684\u90e8\u95e8\u6743\u9650\u53c8\u548c HRM \u4e0d\u4e00\u81f4\u3002Starter \u8ba9\u6bcf\u4e2a *-server \u4f7f\u7528\u540c\u4e00\u5957\u5b89\u5168\u548c SQL \u63d2\u4ef6\u94fe\u3002<\/p>\n<p>\u4e1a\u52a1\u6a21\u5757\u53ea\u9700\u8981\u58f0\u660e&#xff1a;<\/p>\n<p>&#064;PreAuthorize(&#034;&#064;ss.hasPermission(&#039;hrm:employee:query&#039;)&#034;)<br \/>\n&#064;DataPermission<br \/>\npublic PageResult&lt;EmployeeDO&gt; getEmployeePage(EmployeePageReqVO reqVO) {<br \/>\n    return employeeMapper.selectPage(reqVO);<br \/>\n}<\/p>\n<p>\u771f\u6b63\u7684 Token\u3001\u6743\u9650\u7801\u3001\u79df\u6237 ID \u548c\u90e8\u95e8\u8303\u56f4\u89e3\u6790\u7531\u6846\u67b6\u5b8c\u6210\u3002<\/p>\n<p>&#8212;<\/p>\n<h3>\u4e8c\u3001\u90e8\u7f72\u53cc\u6a21\u5f0f&#xff1a;\u540c\u4e00\u5957\u6a21\u5757\u4ee3\u7801&#xff0c;\u5148\u5355\u4f53\u8fd8\u662f\u76f4\u63a5\u5fae\u670d\u52a1<\/h3>\n<p>\u6839 Maven \u5de5\u7a0b\u63d0\u4f9b\u4e24\u79cd Profile&#xff1a;<\/p>\n<p>| \u6a21\u5f0f | \u547d\u4ee4 | \u8fd0\u884c\u5f62\u6001 | \u9002\u5408\u573a\u666f |<\/p>\n<p>|:&#8212;|:&#8212;|:&#8212;|:&#8212;|<\/p>\n<p>| boot | mvn -P boot &#8230; | ****-server \u5355\u8fdb\u7a0b\u805a\u5408\u6a21\u5757 | \u672c\u5730\u5f00\u53d1\u3001\u4e2d\u5c0f\u89c4\u6a21\u3001\u5feb\u901f\u4ea4\u4ed8 |<\/p>\n<p>| cloud | mvn -P cloud &#8230; | Gateway &#043; \u5404 *-server \u72ec\u7acb\u90e8\u7f72 | \u56e2\u961f\u5206\u5de5\u3001\u5f39\u6027\u6269\u5bb9\u3001\u670d\u52a1\u6cbb\u7406 |<\/p>\n<p>cloud \u662f\u9ed8\u8ba4 Maven Profile&#xff0c;\u4f46\u4e0d\u4ee3\u8868\u751f\u4ea7\u5fc5\u987b\u5fae\u670d\u52a1\u3002\u5c0f\u56e2\u961f\u628a\u4e8c\u5341\u4e2a\u670d\u52a1\u5168\u90e8\u62c6\u5f00&#xff0c;\u4f1a\u589e\u52a0 Nacos\u3001\u94fe\u8def\u8ffd\u8e2a\u3001\u914d\u7f6e\u3001\u65e5\u5fd7\u3001\u53d1\u5e03\u987a\u5e8f\u548c\u8d44\u6e90\u6210\u672c\u3002\u5148\u7528\u5355\u4f53\u628a\u4e1a\u52a1\u8fb9\u754c\u5199\u6e05&#xff0c;\u518d\u6309\u538b\u529b\u548c\u56e2\u961f\u8fb9\u754c\u62c6\u670d\u52a1&#xff0c;\u901a\u5e38\u66f4\u7a33\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919122025-6aae7e094096b.png\" alt=\"Nacos\u3001Gateway\u3001Feign \u4e0e\u53cc\u6a21\u5f0f\u67b6\u6784\" \/><\/p>\n<p>*\u25b2 \u5fae\u670d\u52a1\u589e\u52a0\u7edf\u4e00\u5165\u53e3\u3001\u6ce8\u518c\u914d\u7f6e\u548c\u670d\u52a1\u8c03\u7528&#xff1b;\u4e1a\u52a1\u6a21\u5757\u672c\u8eab\u4ecd\u4fdd\u6301\u540c\u4e00\u5957 API \u4e0e\u5b9e\u73b0\u8fb9\u754c*<\/p>\n<h4>2.1 Gateway \u8d1f\u8d23\u4ec0\u4e48<\/h4>\n<p>\u5fae\u670d\u52a1\u6a21\u5f0f\u4e0b&#xff0c;\u8bf7\u6c42\u8fdb\u5165 Gateway&#xff1a;<\/p>\n<p>\/admin-api\/system\/**  \u2192 system-server<br \/>\n\/admin-api\/bpm\/**     \u2192 bpm-server<br \/>\n\/admin-api\/oa\/**      \u2192 oa-server<br \/>\n\/admin-api\/hrm\/**     \u2192 hrm-server<\/p>\n<p>\u8def\u7531\u4f7f\u7528 Nacos \u670d\u52a1\u53d1\u73b0\u548c grayLb \u8d1f\u8f7d\u7b56\u7565\u3002\u7f51\u5173\u7684 Token \u8fc7\u6ee4\u5668\u53ef\u4ee5\u89e3\u6790\u8bbf\u95ee\u4ee4\u724c\u5e76\u5411\u4e0b\u6e38\u900f\u4f20 login-user&#xff0c;\u5176\u4e2d\u5305\u542b userId\u3001tenantId\u3001deptId \u7b49\u4e0a\u4e0b\u6587\u3002<\/p>\n<p>\u9700\u8981\u8bda\u5b9e\u8bf4\u660e&#xff1a;\u7f51\u5173\u4e0d\u662f\u552f\u4e00\u5b89\u5168\u8fb9\u754c\u3002\u65e0\u6548\u6216\u7f3a\u5931 Token \u7684\u8bf7\u6c42\u53ef\u80fd\u7ee7\u7eed\u8f6c\u53d1&#xff0c;\u6700\u7ec8\u7531\u4e0b\u6e38 Spring Security\u3001&#064;PermitAll \u548c\u65b9\u6cd5\u6743\u9650\u51b3\u5b9a\u8fd4\u56de 401 \u6216 403\u3002\u8fd9\u6837\u5355\u4f53\u6a21\u5f0f\u548c\u7ed5\u8fc7\u7f51\u5173\u7684\u5185\u90e8\u8c03\u7528\u4e5f\u4e0d\u4f1a\u5931\u53bb\u9274\u6743\u3002<\/p>\n<p>&#8212;<\/p>\n<h3>\u4e09\u3001\u8eab\u4efd\u5c42&#xff1a;\u9ed8\u8ba4\u4e0d\u662f JWT&#xff0c;\u800c\u662f\u53ef\u64a4\u9500\u7684\u4e0d\u900f\u660e Token<\/h3>\n<p>\u767b\u5f55\u6210\u529f\u540e&#xff0c;\u7cfb\u7edf\u7b7e\u53d1 OAuth2 Access Token \u548c Refresh Token\u3002\u9ed8\u8ba4 Token \u662f\u4e0d\u900f\u660e\u6807\u8bc6&#xff0c;\u670d\u52a1\u7aef\u5728\u6570\u636e\u5e93\u4fdd\u5b58\u5e76\u901a\u8fc7 Redis \u52a0\u901f&#xff0c;\u800c\u4e0d\u662f\u628a\u5168\u90e8\u8eab\u4efd\u4fe1\u606f\u6c38\u4e45\u585e\u8fdb JWT\u3002<\/p>\n<p>\u7528\u6237\u540d \/ \u77ed\u4fe1 \/ \u793e\u4ea4\u767b\u5f55<br \/>\n  \u2192 AdminAuthService<br \/>\n  \u2192 OAuth2TokenService<br \/>\n  \u2192 access_token &#043; refresh_token<br \/>\n  \u2192 MySQL \u6301\u4e45\u5316 &#043; Redis \u70ed\u7f13\u5b58<\/p>\n<p>\u4e0d\u900f\u660e Token \u7684\u4ee3\u4ef7\u662f\u9700\u8981\u670d\u52a1\u7aef\u67e5\u8be2&#xff1b;\u4f18\u52bf\u662f\u53ef\u4ee5\u8e22\u4eba\u3001\u64a4\u9500\u3001\u7eed\u671f\u3001\u67e5\u770b\u5728\u7ebf\u72b6\u6001&#xff0c;\u5e76\u53ca\u65f6\u53cd\u6620\u7528\u6237\u7981\u7528\u548c\u79df\u6237\u8fc7\u671f\u3002<\/p>\n<p>\u670d\u52a1\u5185 TokenAuthenticationFilter \u628a\u8eab\u4efd\u653e\u5165 Spring Security Context\u3002\u968f\u540e Controller \u4f7f\u7528\u65b9\u6cd5\u7ea7\u6743\u9650&#xff1a;<\/p>\n<p>&#064;GetMapping(&#034;\/page&#034;)<br \/>\n&#064;PreAuthorize(&#034;&#064;ss.hasPermission(&#039;system:user:query&#039;)&#034;)<br \/>\npublic CommonResult&lt;PageResult&lt;UserRespVO&gt;&gt; getUserPage(<br \/>\n        &#064;Valid UserPageReqVO pageReqVO) {<br \/>\n    return success(userService.getUserPage(pageReqVO));<br \/>\n}<\/p>\n<p>\u767b\u5f55\u53ea\u8bc1\u660e\u201c\u4f60\u662f\u8c01\u201d&#xff0c;\u8fd9\u6761\u6ce8\u89e3\u624d\u5f00\u59cb\u56de\u7b54\u201c\u4f60\u80fd\u4e0d\u80fd\u505a\u8fd9\u4ef6\u4e8b\u201d\u3002<\/p>\n<p>&#8212;<\/p>\n<h3>\u56db\u3001RBAC&#xff1a;\u83dc\u5355\u3001\u6309\u94ae\u548c\u63a5\u53e3\u5fc5\u987b\u4f7f\u7528\u540c\u4e00\u6761\u6743\u9650\u7801<\/h3>\n<p>\u6838\u5fc3\u5173\u7cfb\u662f&#xff1a;<\/p>\n<p>erDiagram<br \/>\n    SYSTEM_USER ||&#8211;o{ SYSTEM_USER_ROLE : has<br \/>\n    SYSTEM_ROLE ||&#8211;o{ SYSTEM_USER_ROLE : assigned<br \/>\n    SYSTEM_ROLE ||&#8211;o{ SYSTEM_ROLE_MENU : owns<br \/>\n    SYSTEM_MENU ||&#8211;o{ SYSTEM_ROLE_MENU : granted<\/p>\n<p>    SYSTEM_ROLE {<br \/>\n      bigint id<br \/>\n      string code<br \/>\n      int data_scope<br \/>\n      json data_scope_dept_ids<br \/>\n    }<br \/>\n    SYSTEM_MENU {<br \/>\n      bigint id<br \/>\n      int type<br \/>\n      string permission<br \/>\n      bigint parent_id<br \/>\n    }<\/p>\n<p>system_menu \u540c\u65f6\u627f\u8f7d\u76ee\u5f55\u3001\u9875\u9762\u83dc\u5355\u548c\u6309\u94ae\u8282\u70b9\u3002\u6309\u94ae\u8282\u70b9\u7684 permission \u4f8b\u5982&#xff1a;<\/p>\n<p>system:user:query<br \/>\nsystem:user:create<br \/>\nsystem:user:update<br \/>\nsystem:user:delete<\/p>\n<p>\u89d2\u8272\u9009\u62e9\u83dc\u5355\u6811\u65f6\u4e5f\u4f1a\u9009\u4e2d\u6309\u94ae\u8282\u70b9&#xff1b;\u540e\u7aef PermissionServiceImpl \u6839\u636e\u7528\u6237\u89d2\u8272\u3001\u89d2\u8272\u83dc\u5355\u548c\u6743\u9650\u5b57\u7b26\u4e32\u505a\u5224\u65ad\u3002<\/p>\n<h4>4.1 \u524d\u7aef\u5982\u4f55\u62ff\u5230\u540c\u4e00\u4efd\u6743\u9650<\/h4>\n<p>\u767b\u5f55\u540e&#xff0c;auth.ts \u8c03\u7528 \/system\/auth\/get-permission-info&#xff0c;\u4e00\u6b21\u62ff\u56de&#xff1a;<\/p>\n<p>&#8211; \u7528\u6237\u4fe1\u606f&#xff1b;<\/p>\n<p>&#8211; \u89d2\u8272\u96c6\u5408&#xff1b;<\/p>\n<p>&#8211; \u540e\u7aef\u83dc\u5355\u6811&#xff1b;<\/p>\n<p>&#8211; \u6309\u94ae\u6743\u9650\u7801\u96c6\u5408\u3002<\/p>\n<p>\u83dc\u5355\u6811\u7ecf Vben \u7684 generateAccessible() \u8f6c\u6210\u52a8\u6001\u8def\u7531&#xff1b;\u6309\u94ae\u4f7f\u7528&#xff1a;<\/p>\n<p>&lt;Button v-access:code&#061;&#034;[&#039;system:user:create&#039;]&#034;&gt;<br \/>\n  \u65b0\u589e\u7528\u6237<br \/>\n&lt;\/Button&gt;<\/p>\n<p>\u6216\u5728\u811a\u672c\u4e2d\u8c03\u7528 hasAccessByCodes()\u3002<\/p>\n<p>\u524d\u7aef\u9690\u85cf\u6309\u94ae\u53ea\u662f\u5728\u6539\u5584\u4f53\u9a8c\u3002\u653b\u51fb\u8005\u53ef\u4ee5\u7ed5\u8fc7\u9875\u9762\u76f4\u63a5\u8c03\u7528 API&#xff0c;\u6240\u4ee5\u540e\u7aef &#064;PreAuthorize \u5fc5\u987b\u4f7f\u7528\u540c\u4e00\u6743\u9650\u7801\u518d\u6b21\u6821\u9a8c\u3002<\/p>\n<h4>4.2 \u83dc\u5355\u4e0d\u5b58\u5728\u65f6\u4e3a\u4ec0\u4e48\u8981\u4e25\u683c\u62d2\u7edd<\/h4>\n<p>\u82e5 Controller \u5199\u4e86 &#064;ss.hasPermission(&#039;foo:bar:create&#039;)&#xff0c;\u4f46\u83dc\u5355\u8868\u6ca1\u6709\u8fd9\u4e2a\u6743\u9650\u7801&#xff0c;\u5bbd\u677e\u5b9e\u73b0\u53ef\u80fd\u8bef\u628a\u5b83\u5f53\u201c\u672a\u914d\u7f6e\u6240\u4ee5\u653e\u884c\u201d\u3002\u5f53\u524d\u4e25\u683c\u6a21\u5f0f\u4f1a\u76f4\u63a5\u62d2\u7edd&#xff0c;\u8feb\u4f7f\u5f00\u53d1\u548c\u5b9e\u65bd\u628a\u83dc\u5355 SQL\u3001\u89d2\u8272\u6388\u6743\u4e0e\u4ee3\u7801\u6ce8\u89e3\u5bf9\u9f50\u3002<\/p>\n<p>&#8212;<\/p>\n<h3>\u4e94\u3001\u6570\u636e\u6743\u9650&#xff1a;\u6709\u67e5\u8be2\u6309\u94ae&#xff0c;\u4e0d\u7b49\u4e8e\u80fd\u770b\u5168\u516c\u53f8\u7684\u6570\u636e<\/h3>\n<p>RBAC \u5224\u65ad\u201c\u80fd\u4e0d\u80fd\u67e5\u5458\u5de5\u201d&#xff1b;DataScope \u5224\u65ad\u201c\u80fd\u67e5\u54ea\u4e9b\u5458\u5de5\u201d\u3002\u4e24\u8005\u6b63\u4ea4\u3002<\/p>\n<p>\u5e38\u89c1\u4e94\u6863\u6570\u636e\u8303\u56f4&#xff1a;<\/p>\n<p>| \u8303\u56f4 | SQL \u8bed\u4e49 |<\/p>\n<p>|:&#8212;|:&#8212;|<\/p>\n<p>| \u5168\u90e8\u6570\u636e | \u4e0d\u8ffd\u52a0\u90e8\u95e8\u6216\u672c\u4eba\u6761\u4ef6 |<\/p>\n<p>| \u6307\u5b9a\u90e8\u95e8 | dept_id IN (&#8230;) |<\/p>\n<p>| \u672c\u90e8\u95e8 | dept_id &#061; currentDeptId |<\/p>\n<p>| \u672c\u90e8\u95e8\u53ca\u5b50\u90e8\u95e8 | dept_id IN (deptTree) |<\/p>\n<p>| \u4ec5\u672c\u4eba | user_id &#061; loginUserId |<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919122026-6aae7e0a57c0e.png\" alt=\"\u89d2\u8272\u914d\u7f6e\u4e2d\u7684\u90e8\u95e8\u6570\u636e\u6743\u9650\" \/><\/p>\n<p>*\u25b2 \u89d2\u8272\u4e0d\u4ec5\u5206\u914d\u83dc\u5355&#xff0c;\u8fd8\u8981\u51b3\u5b9a\u53ef\u89c1\u6570\u636e\u8303\u56f4&#xff1b;\u6307\u5b9a\u90e8\u95e8\u53ef\u4ee5\u9009\u62e9\u7ec4\u7ec7\u6811\u8282\u70b9*<\/p>\n<p>MyBatis-Plus \u67e5\u8be2\u8fdb\u5165 DataPermissionRuleHandler \u540e&#xff0c;\u7531 DeptDataPermissionRule.getExpression() \u751f\u6210\u6761\u4ef6\u5e76\u8ffd\u52a0\u5230 SQL\u3002<\/p>\n<p>&#8212; \u4e1a\u52a1\u4ee3\u7801\u539f\u67e5\u8be2<br \/>\nSELECT * FROM hrm_employee WHERE status &#061; 1;<\/p>\n<p>&#8212; \u5f53\u524d\u7528\u6237\u53ea\u6709\u7814\u53d1\u90e8\u53ca\u5b50\u90e8\u95e8\u6743\u9650<br \/>\nSELECT * FROM hrm_employee<br \/>\nWHERE status &#061; 1<br \/>\n  AND dept_id IN (12, 18, 23);<\/p>\n<h4>5.1 \u6570\u636e\u6743\u9650\u4e3a\u4ec0\u4e48\u4e0d\u80fd\u53ea\u5199\u5728 PageReqVO<\/h4>\n<p>\u8ba9\u524d\u7aef\u4f20 deptId \u53ea\u80fd\u5b9e\u73b0\u7b5b\u9009&#xff0c;\u4e0d\u80fd\u5b9e\u73b0\u5b89\u5168\u3002\u7528\u6237\u53ef\u4ee5\u5220\u6389\u53c2\u6570\u6216\u6539\u6210\u5176\u5b83\u90e8\u95e8\u3002\u6570\u636e\u8303\u56f4\u5fc5\u987b\u6765\u81ea\u767b\u5f55\u8eab\u4efd\u548c\u89d2\u8272&#xff0c;\u5728 SQL \u5c42\u81ea\u52a8\u8ffd\u52a0\u3002<\/p>\n<h4>5.2 \u4ec0\u4e48\u65f6\u5019\u9700\u8981\u5173\u95ed\u6570\u636e\u6743\u9650<\/h4>\n<p>\u767b\u5f55\u521d\u59cb\u5316\u3001\u6743\u9650\u8ba1\u7b97\u7b49\u5c11\u6570\u5185\u90e8\u67e5\u8be2\u5982\u679c\u4e5f\u88ab DataScope \u8fc7\u6ee4&#xff0c;\u53ef\u80fd\u5bfc\u81f4\u201c\u4e3a\u4e86\u7b97\u6743\u9650\u5148\u9700\u8981\u6743\u9650\u201d\u7684\u5faa\u73af\u3002\u6b64\u65f6\u53ef\u4ee5\u4f7f\u7528 &#064;DataPermission(enable &#061; false)&#xff0c;\u4f46\u5fc5\u987b\u9650\u5b9a\u5728\u6e05\u695a\u7684\u57fa\u7840\u8bbe\u65bd\u65b9\u6cd5\u4e0a&#xff0c;\u4e0d\u80fd\u56e0\u4e3a\u67e5\u8be2\u7ed3\u679c\u5c11\u5c31\u968f\u624b\u5173\u95ed\u3002<\/p>\n<p>&#8212;<\/p>\n<h3>\u516d\u3001\u591a\u79df\u6237&#xff1a;\u5148\u9694\u79bb\u516c\u53f8&#xff0c;\u518d\u5728\u516c\u53f8\u5185\u90e8\u505a\u6570\u636e\u6743\u9650<\/h3>\n<p>\u9ed8\u8ba4\u591a\u79df\u6237\u65b9\u6848\u662f\u5171\u4eab\u6570\u636e\u5e93\u3001\u5171\u4eab\u8868\u3001\u6bcf\u884c\u4e1a\u52a1\u6570\u636e\u5e26 tenant_id\u3002\u8bf7\u6c42\u5934\u4e2d\u7684\u79df\u6237 ID \u7ecf TenantContextWebFilter \u5199\u5165 TenantContextHolder&#xff0c;MyBatis-Plus \u7684 TenantDatabaseInterceptor \u81ea\u52a8\u8ffd\u52a0\u6761\u4ef6\u3002<\/p>\n<p>&#8212; \u5148\u9694\u79bb\u79df\u6237&#xff0c;\u518d\u53e0\u52a0\u90e8\u95e8\u6570\u636e\u8303\u56f4<br \/>\nSELECT * FROM hrm_employee<br \/>\nWHERE tenant_id &#061; 1024<br \/>\n  AND dept_id IN (12, 18, 23)<br \/>\n  AND status &#061; 1;<\/p>\n<p>\u987a\u5e8f\u4e0a\u53ef\u4ee5\u7406\u89e3\u4e3a&#xff1a;<\/p>\n<p>\u79df\u6237\u8fb9\u754c&#xff1a;\u5148\u786e\u8ba4\u662f\u54ea\u5bb6\u516c\u53f8<br \/>\n  AND<br \/>\n\u6570\u636e\u6743\u9650&#xff1a;\u518d\u786e\u8ba4\u8fd9\u4e2a\u4eba\u5728\u516c\u53f8\u5185\u80fd\u770b\u54ea\u4e9b\u90e8\u95e8<\/p>\n<p>\u5b9e\u4f53\u7ee7\u627f TenantBaseDO \u540e\u5177\u5907\u79df\u6237\u5b57\u6bb5&#xff1b;\u5168\u5c40\u83dc\u5355\u7b49\u4e0d\u5e94\u6309\u79df\u6237\u91cd\u590d\u7684\u6570\u636e\u4f7f\u7528 &#064;TenantIgnore\u3002\u6b64\u5916&#xff0c;\u79df\u6237\u4e0a\u4e0b\u6587\u8fd8\u8981\u8fdb\u5165 Redis\u3001RPC\u3001\u5b9a\u65f6\u4efb\u52a1\u548c\u6d88\u606f\u961f\u5217&#xff0c;\u4e0d\u80fd\u53ea\u5728 Web \u8bf7\u6c42\u91cc\u6709\u6548\u3002<\/p>\n<h4>6.1 \u79df\u6237\u5957\u9910\u4e0d\u662f\u4e00\u5f20\u4ef7\u683c\u8868<\/h4>\n<p>\u65b0\u79df\u6237\u521d\u59cb\u5316\u65f6&#xff0c;\u5957\u9910\u51b3\u5b9a\u53ef\u7528\u83dc\u5355\u3001\u6d41\u7a0b\u6a21\u578b\u3001\u9ed8\u8ba4\u89d2\u8272\u548c\u7ec4\u7ec7\u9aa8\u67b6\u3002\u5b83\u89e3\u51b3\u7684\u662f\u201c\u8fd9\u5bb6\u516c\u53f8\u8d2d\u4e70\u4e86\u54ea\u4e9b\u80fd\u529b\u201d&#xff0c;\u89d2\u8272\u89e3\u51b3\u7684\u662f\u201c\u516c\u53f8\u91cc\u7684\u8fd9\u4e2a\u4eba\u80fd\u7528\u54ea\u4e9b\u80fd\u529b\u201d\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919122027-6aae7e0baf2c7.png\" alt=\"\u79df\u6237\u5957\u9910\u4e2d\u7684\u6a21\u5757\u83dc\u5355\u6388\u6743\" \/><\/p>\n<p>*\u25b2 \u5957\u9910\u5148\u88c1\u51fa\u79df\u6237\u53ef\u7528\u6a21\u5757&#xff0c;\u79df\u6237\u5185\u90e8\u518d\u901a\u8fc7\u89d2\u8272\u8fdb\u884c\u4e8c\u6b21\u6388\u6743*<\/p>\n<h4>6.2 \u591a\u79df\u6237\u548c\u591a\u7ec4\u7ec7\u4e0d\u662f\u4e00\u56de\u4e8b<\/h4>\n<p>&#8211; \u591a\u79df\u6237\u5207\u6362&#xff1a;\u8fdb\u5165\u53e6\u4e00\u5bb6\u903b\u8f91\u9694\u79bb\u7684\u516c\u53f8&#xff0c;tenant_id \u53d8\u5316&#xff1b;<\/p>\n<p>&#8211; \u591a\u7ec4\u7ec7\u5207\u6362&#xff1a;\u4ecd\u5728\u540c\u4e00\u79df\u6237\u5185\u5207\u6362\u5f53\u524d\u4efb\u804c\u3001\u90e8\u95e8\u6216\u516c\u53f8\u4e3b\u4f53&#xff0c;deptId \u53d8\u5316\u3002<\/p>\n<p>\u9876\u680f\u5207\u6362\u4efb\u804c\u4f1a\u5f71\u54cd\u90e8\u95e8\u8d1f\u8d23\u4eba\u3001\u6570\u636e\u6743\u9650\u548c\u6d41\u7a0b\u5019\u9009\u4eba&#xff0c;\u4f46\u4e0d\u4f1a\u8de8\u51fa\u79df\u6237\u8fb9\u754c\u3002\u628a\u4e24\u8005\u6df7\u4e3a\u4e00\u8c08\u5bb9\u6613\u4ea7\u751f\u8d8a\u6743\u3002<\/p>\n<p>&#8212;<\/p>\n<h3>\u4e03\u3001\u5de5\u4f5c\u6d41&#xff1a;\u6743\u9650\u51b3\u5b9a\u8c01\u80fd\u529e&#xff0c;Flowable \u51b3\u5b9a\u5355\u636e\u5f80\u54ea\u8d70<\/h3>\n<p>\u5f53\u524d BPM \u6a21\u5757\u57fa\u4e8e Flowable 8.0.0&#xff0c;\u8d1f\u8d23\u6a21\u578b\u3001\u6d41\u7a0b\u5b9e\u4f8b\u3001\u4efb\u52a1\u3001\u5019\u9009\u4eba\u548c\u5386\u53f2\u8f68\u8ff9\u3002\u4e1a\u52a1\u6a21\u5757\u4e0d\u5e94\u76f4\u63a5\u4fee\u6539 Flowable \u8fd0\u884c\u8868&#xff0c;\u4e5f\u4e0d\u5e94\u8ba9 BPM \u6a21\u5757\u7406\u89e3\u8f66\u8f86\u3001\u9884\u7b97\u6216\u8d44\u4ea7\u89c4\u5219\u3002<\/p>\n<p>sequenceDiagram<br \/>\n    participant B as \u4e1a\u52a1\u6a21\u5757<br \/>\n    participant P as BPM \u6a21\u5757<br \/>\n    participant F as Flowable<br \/>\n    participant E as \u72b6\u6001\u4e8b\u4ef6<\/p>\n<p>    B-&gt;&gt;P: \u53d1\u8d77\u6d41\u7a0b(processKey, businessKey)<br \/>\n    P-&gt;&gt;F: \u542f\u52a8\u5df2\u53d1\u5e03\u5b9a\u4e49<br \/>\n    F&#8211;&gt;&gt;P: \u521b\u5efa\u5e76\u63a8\u8fdb\u4efb\u52a1<br \/>\n    P&#8211;&gt;&gt;B: processInstanceId<br \/>\n    F-&gt;&gt;P: \u6d41\u7a0b\u7ed3\u675f<br \/>\n    P-&gt;&gt;E: \u53d1\u5e03\u5ba1\u6279\u7ed3\u679c<br \/>\n    E-&gt;&gt;B: FlowBillService.updateProcessStatus<br \/>\n    B-&gt;&gt;B: \u56de\u5199\u4e1a\u52a1\u53f0\u8d26\u4e0e\u8d44\u6e90\u72b6\u6001<\/p>\n<p>FlowBillServiceFactory \u6309 processDefinitionKey \u627e\u5230\u5bf9\u5e94\u4e1a\u52a1\u670d\u52a1\u3002\u7528\u8f66\u7533\u8bf7\u5ba1\u6279\u901a\u8fc7\u540e\u9501\u5b9a\u8f66\u8f86\u65f6\u6bb5&#xff0c;\u8d44\u4ea7\u9886\u7528\u56de\u5199\u4f7f\u7528\u4eba&#xff0c;\u62a5\u9500\u9a73\u56de\u91ca\u653e\u9884\u7b97\u548c\u53d1\u7968\u5360\u7528\u3002<\/p>\n<p>\u5728\u5355\u4f53\u6a21\u5f0f\u4e0b\u53ef\u4ee5\u4f7f\u7528\u672c\u5730\u4e8b\u4ef6&#xff1b;\u5fae\u670d\u52a1\u6a21\u5f0f\u9700\u8981 MQ\u3001HTTP \u6216 RPC \u4f20\u9012\u72b6\u6001\u3002\u65e0\u8bba\u90e8\u7f72\u65b9\u5f0f\u5982\u4f55&#xff0c;\u4e1a\u52a1\u5951\u7ea6\u4e0d\u53d8\u3002<\/p>\n<h4>7.1 BPM \u4e0e\u6743\u9650\u5728\u54ea\u91cc\u4ea4\u53c9<\/h4>\n<p>&#8211; \u6d41\u7a0b\u53d1\u8d77\u6743\u9650\u51b3\u5b9a\u8c01\u80fd\u770b\u5230\u5e76\u542f\u52a8\u6a21\u578b&#xff1b;<\/p>\n<p>&#8211; \u8282\u70b9\u5019\u9009\u4eba\u7ed3\u5408\u90e8\u95e8\u3001\u89d2\u8272\u3001\u5c97\u4f4d\u548c\u53d1\u8d77\u4eba\u4e0a\u4e0b\u6587&#xff1b;<\/p>\n<p>&#8211; \u8282\u70b9\u5b57\u6bb5\u6743\u9650\u51b3\u5b9a\u5ba1\u6279\u4eba\u80fd\u6539\u54ea\u4e9b\u4e1a\u52a1\u5b57\u6bb5&#xff1b;<\/p>\n<p>&#8211; \u6309\u94ae\u6743\u9650\u51b3\u5b9a\u662f\u5426\u5141\u8bb8\u901a\u8fc7\u3001\u9000\u56de\u3001\u8f6c\u529e\u6216\u52a0\u7b7e&#xff1b;<\/p>\n<p>&#8211; DataScope \u7ee7\u7eed\u7ea6\u675f\u4e1a\u52a1\u53f0\u8d26\u67e5\u8be2\u3002<\/p>\n<p>\u5de5\u4f5c\u6d41\u4e0d\u662f\u8d8a\u8fc7 RBAC \u548c\u79df\u6237\u7684\u53e6\u4e00\u4e2a\u5165\u53e3&#xff0c;\u800c\u662f\u5efa\u7acb\u5728\u5b83\u4eec\u4e4b\u4e0a\u3002<\/p>\n<p>&#8212;<\/p>\n<h3>\u516b\u3001\u4e00\u6761\u5458\u5de5\u5217\u8868\u8bf7\u6c42\u5982\u4f55\u7a7f\u8fc7\u5168\u6808<\/h3>\n<p>\u4ee5\u201c\u7814\u53d1\u90e8\u4e3b\u7ba1\u6253\u5f00\u5458\u5de5\u5217\u8868\u201d\u4e3a\u4f8b&#xff1a;<\/p>\n<h4>\u7b2c\u4e00\u6b65&#xff1a;\u5ba2\u6237\u7aef\u5e26\u4e0a\u4e0b\u6587<\/h4>\n<p>Vue3 \u53d1\u9001&#xff1a;<\/p>\n<p>Authorization: Bearer &lt;access-token&gt;<br \/>\ntenant-id: 1024<br \/>\ncurrent-dept-id: 12<br \/>\nGET \/admin-api\/hrm\/employee\/page<\/p>\n<h4>\u7b2c\u4e8c\u6b65&#xff1a;Gateway \u8def\u7531<\/h4>\n<p>\u5fae\u670d\u52a1\u6a21\u5f0f\u4e0b&#xff0c;Gateway \u6839\u636e \/admin-api\/hrm\/ \u627e\u5230 hrm-server&#xff0c;\u89e3\u6790 Token \u5e76\u900f\u4f20\u767b\u5f55\u4e0a\u4e0b\u6587&#xff1b;\u5355\u4f53\u6a21\u5f0f\u5219\u76f4\u63a5\u8fdb\u5165 **-server\u3002<\/p>\n<h4>\u7b2c\u4e09\u6b65&#xff1a;\u670d\u52a1\u5185\u8ba4\u8bc1\u4e0e\u529f\u80fd\u6743\u9650<\/h4>\n<p>Token Filter \u6784\u9020 LoginUser&#xff0c;&#064;PreAuthorize(&#034;&#064;ss.hasPermission(&#039;hrm:employee:query&#039;)&#034;) \u6821\u9a8c\u89d2\u8272\u662f\u5426\u62e5\u6709\u67e5\u8be2\u6309\u94ae\u6743\u9650\u3002<\/p>\n<h4>\u7b2c\u56db\u6b65&#xff1a;SQL \u53e0\u52a0\u4e24\u5c42\u9694\u79bb<\/h4>\n<p>Tenant \u63d2\u4ef6\u8ffd\u52a0 tenant_id &#061; 1024&#xff0c;DataPermission \u63d2\u4ef6\u518d\u8ffd\u52a0\u7814\u53d1\u90e8\u53ca\u5b50\u90e8\u95e8\u8303\u56f4\u3002\u5373\u4f7f\u7528\u6237\u624b\u6539\u524d\u7aef\u90e8\u95e8\u7b5b\u9009&#xff0c;\u4e5f\u4e0d\u80fd\u8bfb\u5230\u5176\u5b83\u79df\u6237\u6216\u65e0\u6743\u90e8\u95e8\u3002<\/p>\n<h4>\u7b2c\u4e94\u6b65&#xff1a;\u524d\u7aef\u53ea\u5c55\u793a\u5141\u8bb8\u7684\u64cd\u4f5c<\/h4>\n<p>\u54cd\u5e94\u8fd4\u56de\u540e&#xff0c;\u9875\u9762\u6839\u636e accessCodes \u51b3\u5b9a\u662f\u5426\u663e\u793a\u65b0\u589e\u3001\u7f16\u8f91\u3001\u5bfc\u51fa\u7b49\u6309\u94ae\u3002\u540e\u7aef\u4f9d\u65e7\u5bf9\u6bcf\u4e2a\u63a5\u53e3\u5355\u72ec\u9274\u6743\u3002<\/p>\n<p>\u8fd9\u6761\u94fe\u89e3\u91ca\u4e86\u4e3a\u4ec0\u4e48\u201c\u540c\u4e00\u4e2a\u9875\u9762&#xff0c;\u4e0d\u540c\u8d26\u53f7\u770b\u5230\u7684\u6570\u636e\u548c\u6309\u94ae\u90fd\u4e0d\u540c\u201d&#xff0c;\u4e5f\u89e3\u91ca\u4e86\u6392\u969c\u65f6\u5e94\u9010\u5c42\u68c0\u67e5 Token\u3001\u79df\u6237\u3001\u6743\u9650\u7801\u548c DataScope&#xff0c;\u800c\u4e0d\u662f\u53ea\u6539\u524d\u7aef\u3002<\/p>\n<p>&#8212;<\/p>\n<h3>\u4e5d\u3001\u56db\u7c7b\u5e38\u89c1\u67b6\u6784\u4e8b\u6545<\/h3>\n<h4>9.1 \u524d\u7aef\u9690\u85cf\u6309\u94ae&#xff0c;\u63a5\u53e3\u6ca1\u6709 &#096;&#064;PreAuthorize&#096;<\/h4>\n<p>\u7ed3\u679c&#xff1a;\u666e\u901a\u7528\u6237\u5728\u6d4f\u89c8\u5668\u63a7\u5236\u53f0\u76f4\u63a5\u8c03\u7528\u5220\u9664\u63a5\u53e3\u3002\u4fee\u590d\u4f4d\u7f6e\u5728 Controller \u6743\u9650&#xff0c;\u4e0d\u662f\u628a\u6309\u94ae\u85cf\u5f97\u66f4\u6df1\u3002<\/p>\n<h4>9.2 \u4e1a\u52a1\u8868\u5fd8\u8bb0\u79df\u6237\u5b57\u6bb5\u6216\u88ab\u9519\u8bef\u5ffd\u7565<\/h4>\n<p>\u7ed3\u679c&#xff1a;\u5217\u8868\u53ef\u80fd\u8bfb\u5230\u5176\u5b83\u5ba2\u6237\u6570\u636e\u3002\u5e94\u68c0\u67e5\u5b9e\u4f53\u662f\u5426\u7ee7\u627f\u79df\u6237\u57fa\u7c7b\u3001\u8868\u662f\u5426\u5c5e\u4e8e\u5168\u5c40\u8868\u3001SQL \u63d2\u4ef6\u662f\u5426\u7ecf\u8fc7&#xff0c;\u800c\u4e0d\u662f\u5728\u6bcf\u4e2a Mapper \u624b\u5199 tenant \u6761\u4ef6\u3002<\/p>\n<h4>9.3 \u62a5\u8868\u6216\u81ea\u5b9a\u4e49 SQL \u7ed5\u8fc7\u6570\u636e\u6743\u9650<\/h4>\n<p>\u590d\u6742 JOIN\u3001\u62a5\u8868\u6570\u636e\u96c6\u548c\u624b\u5de5 SQL \u9700\u8981\u660e\u786e\u522b\u540d\u4e0e\u90e8\u95e8\u5b57\u6bb5\u6620\u5c04\u3002\u67e5\u5f97\u5feb\u4f46\u8d8a\u6743&#xff0c;\u4ecd\u662f\u4e25\u91cd\u7f3a\u9677\u3002<\/p>\n<h4>9.4 \u6d41\u7a0b\u7ed3\u675f&#xff0c;\u4e1a\u52a1\u72b6\u6001\u6ca1\u6709\u56de\u5199<\/h4>\n<p>Flowable \u663e\u793a\u5df2\u901a\u8fc7&#xff0c;\u4f46\u4e1a\u52a1\u5355\u4ecd\u662f\u5ba1\u6279\u4e2d&#xff0c;\u8d44\u6e90\u4e5f\u6ca1\u6709\u9501\u5b9a\u6216\u91ca\u653e\u3002\u5e94\u68c0\u67e5\u6d41\u7a0b key\u3001FlowBillService \u8def\u7531\u548c\u72b6\u6001\u4e8b\u4ef6&#xff0c;\u4e0d\u8981\u5728\u524d\u7aef\u6839\u636e\u6d41\u7a0b\u989c\u8272\u731c\u4e1a\u52a1\u72b6\u6001\u3002<\/p>\n<p>&#8212;<\/p>\n<h3>\u5341\u3001\u67b6\u6784\u9009\u578b\u8fb9\u754c&#xff1a;\u54ea\u4e9b\u8bdd\u4e0d\u80fd\u8bf4\u6ee1<\/h3>\n<h4>10.1 \u591a\u79df\u6237\u9ed8\u8ba4\u662f\u5171\u4eab\u8868\u65b9\u6848<\/h4>\n<p>\u72ec\u7acb\u6570\u636e\u5e93\u548c\u72ec\u7acb Schema \u53ef\u4ee5\u6269\u5c55&#xff0c;\u4f46\u5f53\u524d\u4e3b\u8def\u5f84\u662f tenant_id \u884c\u7ea7\u9694\u79bb\u3002\u4e0d\u8981\u5ba3\u4f20\u6210\u4e09\u79cd\u6a21\u5f0f\u5168\u90e8\u5f00\u7bb1\u5207\u6362\u3002<\/p>\n<h4>10.2 \u5fae\u670d\u52a1\u4e0d\u662f\u8d8a\u591a\u8d8a\u9ad8\u7ea7<\/h4>\n<p>\u7cfb\u7edf\u652f\u6301 boot\/cloud \u53cc\u6a21\u5f0f\u3002\u662f\u5426\u62c6\u5206\u53d6\u51b3\u4e8e\u8bbf\u95ee\u91cf\u3001\u56e2\u961f\u8fb9\u754c\u3001\u53d1\u5e03\u9891\u7387\u548c\u8fd0\u7ef4\u80fd\u529b&#xff0c;\u4e0d\u53d6\u51b3\u4e8e\u6a21\u5757\u6570\u91cf\u3002<\/p>\n<h4>10.3 \u9ed8\u8ba4 Token \u4e0d\u662f JWT<\/h4>\n<p>\u4e0d\u900f\u660e Token \u4f9d\u8d56\u670d\u52a1\u7aef\u5b58\u50a8&#xff0c;\u4f46\u6362\u6765\u5b9e\u65f6\u64a4\u9500\u548c\u5728\u7ebf\u7ba1\u7406\u80fd\u529b\u3002\u82e5\u6539\u6210 JWT&#xff0c;\u8981\u91cd\u65b0\u8bc4\u4f30\u7eed\u671f\u3001\u8e22\u4eba\u548c\u6743\u9650\u53d8\u66f4\u751f\u6548\u7b56\u7565\u3002<\/p>\n<h4>10.4 \u524d\u7aef\u6743\u9650\u4e0d\u662f\u5b89\u5168\u8fb9\u754c<\/h4>\n<p>\u52a8\u6001\u8def\u7531\u548c v-access \u53ea\u80fd\u51cf\u5c11\u8bef\u64cd\u4f5c&#xff0c;\u771f\u6b63\u7684\u5b89\u5168\u4ecd\u5728\u65b9\u6cd5\u6743\u9650\u3001\u79df\u6237\u63d2\u4ef6\u548c\u6570\u636e\u6743\u9650\u63d2\u4ef6\u3002<\/p>\n<h4>10.5 \u6240\u6709\u6a21\u5757\u4e0d\u4e00\u5b9a\u5728\u6bcf\u4e2a\u7248\u672c\u542f\u7528<\/h4>\n<p>\u5168\u529f\u80fd\u7248\u3001OA \u7248\u548c\u53ef\u9009\u4e1a\u52a1\u6a21\u5757\u7684 Maven \u4f9d\u8d56\u4e0e\u83dc\u5355\u5957\u9910\u53ef\u4ee5\u4e0d\u540c\u3002\u67b6\u6784\u652f\u6301\u67d0\u6a21\u5757&#xff0c;\u4e0d\u7b49\u4e8e\u6bcf\u4e2a\u5ba2\u6237\u73af\u5883\u90fd\u90e8\u7f72\u4e86\u8be5\u670d\u52a1\u3002<\/p>\n<p>&#8212;<\/p>\n<h3>\u5341\u4e00\u3001\u4e0a\u7ebf\u524d\u68c0\u67e5\u6e05\u5355<\/h3>\n<p>1. \u6bcf\u4e2a\u5199\u63a5\u53e3\u90fd\u6709\u540e\u7aef\u6743\u9650\u7801\u6821\u9a8c&#xff1b;<\/p>\n<p>2. \u83dc\u5355\u3001\u6309\u94ae\u6743\u9650\u7801\u4e0e Controller \u6ce8\u89e3\u5b8c\u5168\u4e00\u81f4&#xff1b;<\/p>\n<p>3. \u4e1a\u52a1\u8868\u5305\u542b\u6b63\u786e\u7684\u79df\u6237\u5b57\u6bb5&#xff0c;\u53ea\u6709\u5168\u5c40\u8868\u624d\u5ffd\u7565\u79df\u6237&#xff1b;<\/p>\n<p>4. \u5217\u8868\u3001\u5bfc\u51fa\u3001\u7edf\u8ba1\u548c\u4e0b\u62c9\u63a5\u53e3\u90fd\u7ecf\u8fc7\u6570\u636e\u6743\u9650&#xff1b;<\/p>\n<p>5. \u5f53\u524d\u90e8\u95e8\u5207\u6362\u540e&#xff0c;\u6743\u9650\u7f13\u5b58\u952e\u5305\u542b\u7ec4\u7ec7\u4e0a\u4e0b\u6587&#xff1b;<\/p>\n<p>6. RPC\u3001MQ\u3001\u5b9a\u65f6\u4efb\u52a1\u548c Redis \u7f13\u5b58\u6b63\u786e\u4f20\u64ad\u79df\u6237&#xff1b;<\/p>\n<p>7. \u5fae\u670d\u52a1\u8def\u7531\u4e0e spring.application.name \u5bf9\u9f50&#xff1b;<\/p>\n<p>8. Gateway \u900f\u4f20\u8eab\u4efd\u540e&#xff0c;\u4e0b\u6e38\u4ecd\u72ec\u7acb\u9274\u6743&#xff1b;<\/p>\n<p>9. \u6d41\u7a0b key \u80fd\u8def\u7531\u5230\u6b63\u786e\u7684 FlowBillService&#xff1b;<\/p>\n<p>10. \u6d41\u7a0b\u901a\u8fc7\u3001\u62d2\u7edd\u3001\u53d6\u6d88\u90fd\u80fd\u56de\u5199\u4e1a\u52a1&#xff1b;<\/p>\n<p>11. \u5355\u4f53\u4e0e\u5fae\u670d\u52a1\u81f3\u5c11\u5404\u8dd1\u4e00\u6b21\u6838\u5fc3\u94fe\u8def&#xff1b;<\/p>\n<p>12. \u4f7f\u7528\u4e0d\u540c\u79df\u6237\u3001\u4e0d\u540c\u89d2\u8272\u3001\u4e0d\u540c\u90e8\u95e8\u8d26\u53f7\u505a\u8d8a\u6743\u6d4b\u8bd5\u3002<\/p>\n<p>&#8212;<\/p>\n<h3>\u5e38\u89c1\u95ee\u9898&#xff08;FAQ&#xff09;<\/h3>\n<h4>RBAC \u548c\u6570\u636e\u6743\u9650\u6709\u4ec0\u4e48\u533a\u522b&#xff1f;<\/h4>\n<p>RBAC \u51b3\u5b9a\u80fd\u5426\u8c03\u7528\u201c\u5458\u5de5\u67e5\u8be2\u201d\u529f\u80fd&#xff1b;\u6570\u636e\u6743\u9650\u51b3\u5b9a\u67e5\u8be2\u7ed3\u679c\u662f\u5168\u516c\u53f8\u3001\u672c\u90e8\u95e8\u3001\u5b50\u90e8\u95e8\u8fd8\u662f\u4ec5\u672c\u4eba\u3002\u4e24\u8005\u7f3a\u4e00\u4e0d\u53ef\u3002<\/p>\n<h4>\u591a\u79df\u6237\u5df2\u7ecf\u9694\u79bb\u6570\u636e&#xff0c;\u8fd8\u9700\u8981 DataScope \u5417&#xff1f;<\/h4>\n<p>\u9700\u8981\u3002\u79df\u6237\u53ea\u9694\u79bb\u4e0d\u540c\u5ba2\u6237&#xff1b;\u540c\u4e00\u5ba2\u6237\u5185\u90e8\u4ecd\u6709\u90e8\u95e8\u3001\u5c97\u4f4d\u548c\u672c\u4eba\u6570\u636e\u8fb9\u754c\u3002<\/p>\n<h4>\u4e3a\u4ec0\u4e48\u524d\u540e\u7aef\u8981\u4f7f\u7528\u76f8\u540c\u6743\u9650\u7801&#xff1f;<\/h4>\n<p>\u524d\u7aef\u636e\u6b64\u63a7\u5236\u9875\u9762\u4f53\u9a8c&#xff0c;\u540e\u7aef\u636e\u6b64\u6267\u884c\u5b89\u5168\u6821\u9a8c\u3002\u4e24\u8fb9\u4e0d\u4e00\u81f4\u4f1a\u51fa\u73b0\u6309\u94ae\u53ef\u89c1\u4f46\u63a5\u53e3 403&#xff0c;\u6216\u6309\u94ae\u9690\u85cf\u4f46\u63a5\u53e3\u53ef\u8d8a\u6743\u3002<\/p>\n<h4>\u5c0f\u56e2\u961f\u5e94\u8be5\u76f4\u63a5\u4e0a\u5fae\u670d\u52a1\u5417&#xff1f;<\/h4>\n<p>\u901a\u5e38\u4e0d\u5fc5\u3002\u5148\u7528 boot \u5355\u4f53\u4fdd\u6301\u6a21\u5757\u8fb9\u754c&#xff0c;\u4e1a\u52a1\u548c\u56e2\u961f\u89c4\u6a21\u9700\u8981\u65f6\u518d\u5207 cloud&#xff0c;\u53ef\u4ee5\u964d\u4f4e\u65e9\u671f\u8fd0\u7ef4\u6210\u672c\u3002<\/p>\n<h4>Gateway \u9a8c\u8bc1\u8fc7 Token \u540e&#xff0c;\u4e0b\u6e38\u8fd8\u9700\u8981 Spring Security \u5417&#xff1f;<\/h4>\n<p>\u9700\u8981\u3002\u670d\u52a1\u53ef\u80fd\u88ab\u5185\u90e8\u8c03\u7528\u6216\u5728\u5355\u4f53\u6a21\u5f0f\u8fd0\u884c&#xff0c;\u63a5\u53e3\u6743\u9650\u4e5f\u6bd4\u201c\u662f\u5426\u767b\u5f55\u201d\u66f4\u7ec6\u3002\u7f51\u5173\u8d1f\u8d23\u7edf\u4e00\u5165\u53e3\u548c\u8eab\u4efd\u900f\u4f20&#xff0c;\u4e0b\u6e38\u8d1f\u8d23\u6700\u7ec8\u6388\u6743\u3002<\/p>\n<p>&#8212;<\/p>\n<h3>\u7ed3\u8bed<\/h3>\n<p>\u4f01\u4e1a\u7ea7\u7ba1\u7406\u5e73\u53f0\u67b6\u6784\u4e0d\u662f\u628a Spring Security\u3001MyBatis-Plus\u3001Flowable \u548c Nacos \u5217\u8fdb\u6280\u672f\u6808&#xff0c;\u800c\u662f\u8ba9\u5b83\u4eec\u56f4\u7ed5\u540c\u4e00\u6761\u8bf7\u6c42\u5f62\u6210\u7a33\u5b9a\u8fb9\u754c&#xff1a;<\/p>\n<p>Token \u8bc1\u660e\u8eab\u4efd<br \/>\n\u2192 tenant_id \u9694\u79bb\u5ba2\u6237<br \/>\n\u2192 RBAC \u6821\u9a8c\u529f\u80fd<br \/>\n\u2192 DataScope \u9650\u5236\u6570\u636e\u884c<br \/>\n\u2192 \u4e1a\u52a1\u670d\u52a1\u6267\u884c\u89c4\u5219<br \/>\n\u2192 Flowable \u63a8\u52a8\u5ba1\u6279\u5e76\u56de\u5199\u4e1a\u52a1<\/p>\n<p>\u518d\u901a\u8fc7 boot\/cloud \u53cc\u6a21\u5f0f&#xff0c;\u8ba9\u540c\u4e00\u5957\u6a21\u5757\u4ee3\u7801\u65e2\u80fd\u4f4e\u6210\u672c\u5355\u4f53\u4ea4\u4ed8&#xff0c;\u4e5f\u80fd\u5728\u89c4\u6a21\u5316\u540e\u62c6\u6210\u5fae\u670d\u52a1\u3002\u771f\u6b63\u503c\u5f97\u590d\u7528\u7684\u4e0d\u662f\u6a21\u5757\u6570\u91cf&#xff0c;\u800c\u662f\u8fd9\u4e9b\u6a2a\u5207\u80fd\u529b\u5728\u6bcf\u4e2a\u4e1a\u52a1\u57df\u90fd\u6267\u884c\u4e00\u81f4\u3002<\/p>\n<p>&#8212;<\/p>\n<p>&#x1f4a1; **\u60f3\u8981\u4f53\u9a8c RuoYi Office \u7684\u5f3a\u5927\u529f\u80fd&#xff1f;**<\/p>\n<p>&gt;<\/p>\n<p>&#x1f310; **\u5728\u7ebf\u6f14\u793a**&#xff1a;https:\/\/ruoyioffice.com\/web\/&#xff08;\u8d26\u53f7 admin \/ admin123&#xff09;<\/p>\n<p>&gt;<\/p>\n<p>&#x1f4e6; **\u6e90\u7801\u4ed3\u5e93**&#xff1a;GitHub&#xff1a;https:\/\/github.com\/yuqing2026\/ruoyi-office &#xff5c; GitCode&#xff1a;https:\/\/gitcode.com\/zhouzhongyan\/ruoyi-office &#xff5c; Gitee&#xff1a;https:\/\/gitee.com\/yqzy1688\/ruoyi-office<\/p>\n<p>&gt;<\/p>\n<p>&#x1f4ac; **\u6280\u672f\u54a8\u8be2**&#xff1a;\u6dfb\u52a0\u5fae\u4fe1 **17156169080**&#xff0c;\u5907\u6ce8\u300cRuoYi Office\u300d<\/p>\n<p>&gt;<\/p>\n<p>\u2b50 **\u5982\u679c\u89c9\u5f97\u4e0d\u9519&#xff0c;\u8bf7\u7ed9\u4e2a Star \u652f\u6301\u4e00\u4e0b&#xff01;**<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SpringBoot3Vue3 \u4f01\u4e1a\u7ea7\u7ba1\u7406\u5e73\u53f0\u67b6\u6784&#xff1a;\u591a\u79df\u6237\u3001RBAC\u3001\u6570\u636e\u6743\u9650\u3001\u5de5\u4f5c\u6d41\u4e0e\u5fae\u670d\u52a1\u4e00\u6b21\u8bb2\u900f&#x1f310; **\u6587\u6863\u5730\u5740**&#xff1a;https:\/\/ruoyioffice.com<br \/>\n&#x1f4e6; **\u6e90\u78011\u00b7GitHub**&#xff1a;https:\/\/github.com\/yuqing2026\/ruoyi-office<br \/>\n&#x1f4e6; **\u6e90\u78012\u00b7GitCode**&#xff1a;https:\/\/gitcode.com\/zhou<\/p>\n","protected":false},"author":2,"featured_media":107510,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10355,12225,12226,684,98],"topic":[],"class_list":["post-107515","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ruoyi-office","tag-springboot3","tag-12226","tag-vue3","tag-spring-boot"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SpringBoot3+Vue3 \u4f01\u4e1a\u7ea7\u7ba1\u7406\u5e73\u53f0\u67b6\u6784\uff1a\u591a\u79df\u6237\u3001RBAC\u3001\u6570\u636e\u6743\u9650\u3001\u5de5\u4f5c\u6d41\u4e0e\u5fae\u670d\u52a1\u4e00\u6b21\u8bb2\u900f - \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\/107515.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SpringBoot3+Vue3 \u4f01\u4e1a\u7ea7\u7ba1\u7406\u5e73\u53f0\u67b6\u6784\uff1a\u591a\u79df\u6237\u3001RBAC\u3001\u6570\u636e\u6743\u9650\u3001\u5de5\u4f5c\u6d41\u4e0e\u5fae\u670d\u52a1\u4e00\u6b21\u8bb2\u900f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"SpringBoot3Vue3 \u4f01\u4e1a\u7ea7\u7ba1\u7406\u5e73\u53f0\u67b6\u6784&#xff1a;\u591a\u79df\u6237\u3001RBAC\u3001\u6570\u636e\u6743\u9650\u3001\u5de5\u4f5c\u6d41\u4e0e\u5fae\u670d\u52a1\u4e00\u6b21\u8bb2\u900f&#x1f310; **\u6587\u6863\u5730\u5740**&#xff1a;https:\/\/ruoyioffice.com &#x1f4e6; **\u6e90\u78011\u00b7GitHub**&#xff1a;https:\/\/github.com\/yuqing2026\/ruoyi-office &#x1f4e6; **\u6e90\u78012\u00b7GitCode**&#xff1a;https:\/\/gitcode.com\/zhou\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/107515.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-19T12:20:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919122024-6aae7e0846b1c.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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/107515.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/107515.html\",\"name\":\"SpringBoot3+Vue3 \u4f01\u4e1a\u7ea7\u7ba1\u7406\u5e73\u53f0\u67b6\u6784\uff1a\u591a\u79df\u6237\u3001RBAC\u3001\u6570\u636e\u6743\u9650\u3001\u5de5\u4f5c\u6d41\u4e0e\u5fae\u670d\u52a1\u4e00\u6b21\u8bb2\u900f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-19T12:20:31+00:00\",\"dateModified\":\"2026-09-19T12:20:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/107515.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/107515.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/107515.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SpringBoot3+Vue3 \u4f01\u4e1a\u7ea7\u7ba1\u7406\u5e73\u53f0\u67b6\u6784\uff1a\u591a\u79df\u6237\u3001RBAC\u3001\u6570\u636e\u6743\u9650\u3001\u5de5\u4f5c\u6d41\u4e0e\u5fae\u670d\u52a1\u4e00\u6b21\u8bb2\u900f\"}]},{\"@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":"SpringBoot3+Vue3 \u4f01\u4e1a\u7ea7\u7ba1\u7406\u5e73\u53f0\u67b6\u6784\uff1a\u591a\u79df\u6237\u3001RBAC\u3001\u6570\u636e\u6743\u9650\u3001\u5de5\u4f5c\u6d41\u4e0e\u5fae\u670d\u52a1\u4e00\u6b21\u8bb2\u900f - \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\/107515.html","og_locale":"zh_CN","og_type":"article","og_title":"SpringBoot3+Vue3 \u4f01\u4e1a\u7ea7\u7ba1\u7406\u5e73\u53f0\u67b6\u6784\uff1a\u591a\u79df\u6237\u3001RBAC\u3001\u6570\u636e\u6743\u9650\u3001\u5de5\u4f5c\u6d41\u4e0e\u5fae\u670d\u52a1\u4e00\u6b21\u8bb2\u900f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"SpringBoot3Vue3 \u4f01\u4e1a\u7ea7\u7ba1\u7406\u5e73\u53f0\u67b6\u6784&#xff1a;\u591a\u79df\u6237\u3001RBAC\u3001\u6570\u636e\u6743\u9650\u3001\u5de5\u4f5c\u6d41\u4e0e\u5fae\u670d\u52a1\u4e00\u6b21\u8bb2\u900f&#x1f310; **\u6587\u6863\u5730\u5740**&#xff1a;https:\/\/ruoyioffice.com &#x1f4e6; **\u6e90\u78011\u00b7GitHub**&#xff1a;https:\/\/github.com\/yuqing2026\/ruoyi-office &#x1f4e6; **\u6e90\u78012\u00b7GitCode**&#xff1a;https:\/\/gitcode.com\/zhou","og_url":"https:\/\/www.wsisp.com\/helps\/107515.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-19T12:20:31+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919122024-6aae7e0846b1c.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/107515.html","url":"https:\/\/www.wsisp.com\/helps\/107515.html","name":"SpringBoot3+Vue3 \u4f01\u4e1a\u7ea7\u7ba1\u7406\u5e73\u53f0\u67b6\u6784\uff1a\u591a\u79df\u6237\u3001RBAC\u3001\u6570\u636e\u6743\u9650\u3001\u5de5\u4f5c\u6d41\u4e0e\u5fae\u670d\u52a1\u4e00\u6b21\u8bb2\u900f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-19T12:20:31+00:00","dateModified":"2026-09-19T12:20:31+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/107515.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/107515.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/107515.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"SpringBoot3+Vue3 \u4f01\u4e1a\u7ea7\u7ba1\u7406\u5e73\u53f0\u67b6\u6784\uff1a\u591a\u79df\u6237\u3001RBAC\u3001\u6570\u636e\u6743\u9650\u3001\u5de5\u4f5c\u6d41\u4e0e\u5fae\u670d\u52a1\u4e00\u6b21\u8bb2\u900f"}]},{"@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\/107515","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=107515"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/107515\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/107510"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=107515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=107515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=107515"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=107515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}