Skip to content

Latest commit

 

History

History
72 lines (55 loc) · 1.3 KB

README.md

File metadata and controls

72 lines (55 loc) · 1.3 KB

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": "查询成功" }