springboot使用JPA创建权限功能,所需要的表

来源:互联网 发布:stringbuffer拼接json 编辑:程序博客网 时间:2024/05/17 04:38
松柏先生 2017-11-21 18:50:07

添加依赖

springboot使用JPA创建权限功能,所需要的表


application.yml配置

springboot使用JPA创建权限功能,所需要的表


好接下来创建权限所需要的,有用户,角色和权限的实体类

用户

springboot使用JPA创建权限功能,所需要的表

springboot使用JPA创建权限功能,所需要的表


角色

springboot使用JPA创建权限功能,所需要的表

springboot使用JPA创建权限功能,所需要的表


权限

springboot使用JPA创建权限功能,所需要的表

springboot使用JPA创建权限功能,所需要的表


好了,启动走起

springboot使用JPA创建权限功能,所需要的表


接下来看数据库下,已经多了几张表出来,其中有两张是多对多的关联关系表

springboot使用JPA创建权限功能,所需要的表


springboot使用JPA创建权限功能,所需要的表