MybatisPlus+Shiro简单整合 [简单项目-三]

MybatisPlus+Shiro简单整合

前一篇[MybatisPlus+SpringBoot 自生成和配置]:https://www.cnblogs.com/sword-js/p/14092761.html

基础参考:

基础的五张表:https://www.cnblogs.com/roxy/p/7991386.html

整合Shiro(其实写得很完整了):https://blog.csdn.net/weixin_42236404/article/details/89319359

Mybatis关联collection:https://blog.csdn.net/J080624/article/details/53432992

在此仅做补充,整合Shiro的大佬用的是jpa

步骤一

整体结构

步骤二

定义关联

步骤三

自定义sql,此处是user部分,role同理

暂时到这还算初步能用,但关联查询感觉还是欠缺,谁能告诉我如何配置才能完美地将外键关联配进去

posted @ 2020-12-06 15:22  炼精工坊  阅读(135)  评论(0)    收藏  举报