
springboot
世界第一款
加油!
展开
-
小白使用shiro安全框架|SpringBoot框架整合Shiro安全框架|使用Shiro安全框架实现用户用户角色接口权限管理|解决Shiro安全框架多角色权限问题
前情提示:1、我的数据库一共有4种用户类型表:student、school、company、admin,每张表都有属性role,以此让shiro获得用户角色。因此我实现的方法比较笨拙,仅供参考。有啥问题可以留言,共同进步哈。2、因为shiro的用户权限是默认交集的,即一个接口配置多个用户角色的话就时必须时全部都满足这个角色才能访问。因此我进行了第四步配置。如果没有这个问题的话可以忽略第四步。一、新建一个对象User类public class User { private Integer id原创 2021-05-18 22:57:57 · 659 阅读 · 0 评论 -
date存到数据库中的日期早一天
问题:mysql驱动serverTimezone=UTC的问题,改为上海或者香港原驱动jdbc:mysql://localhost:3306/sms?serverTimezone=UTC改为jdbc:mysql://localhost:3306/sms?serverTimezone=Asia/Shanghai原创 2021-03-28 12:14:07 · 590 阅读 · 0 评论 -
springboot项目mapper无法自动装配。未找到 ‘AdminMapper‘ 类型的 Bean。
解决办法:在mapper interface上面,添加@Repository注解原创 2021-02-20 17:25:52 · 3907 阅读 · 3 评论 -
解决springboot项目的controller层出现java.lang.NullPointerException报错
原创 2021-02-18 19:10:28 · 1863 阅读 · 0 评论 -
springboot idea使用mybatis generaotr逆向生成中遇到的一些问题
1、No plugin found for prefix ‘mybatis-generator‘ in the current project and in the plugin groups解决办法:修改命令行 把mybatis-generator:generate -e 改成mybatis-generator:generate 问题解决2、The specified target project directory demo01 does not exist解决办法:修改generatorCon原创 2021-02-14 17:03:36 · 290 阅读 · 0 评论