Skip to content
/ demo Public

spring boot+jwt+hibernate valid+mybatis plus+dubbo + 权限检验 的小demo

License

Notifications You must be signed in to change notification settings

scxwhite/demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo

spring boot + jwt 登陆验证 + hibernate valid + mybatis plus + dubbo + aop 权限检验

准备

1.安装mysql执行 demo/demo-admin/src/main/resources/demo.sql 进行建表

2.安装zookeeper启动,地址可以在demo/demo-admin/src/main/resources/application.yml 修改

3.启动项目 com/thrcat/DemoApplication.java

测试

登陆/非登陆校验


权限校验

{ "code": 20002, "data": null, "success": false, "message": "无权限访问SUPER_ADMIN接口" }

{ "code": 20002, "data": null, "success": false, "message": "无权限访问MANAGER接口" }

{ "code": 20002, "data": null, "success": false, "message": "无权限访问USER接口" }


登陆校验

{ "code": 20000, "data": "登陆成功", "success": true, "message": "查询成功" }

About

spring boot+jwt+hibernate valid+mybatis plus+dubbo + 权限检验 的小demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages