权限设计(使⽤⾃定义注解+AOP实现权限管理)
准备数据
CREATE TABLE`privilege_menu`(
`id`int(11)NOT NULL AUTO_INCREMENT,
`p_id`int(11)NOT NULL,
扦插月季`privilege_code`varchar(255)NOT NULL,
`privilege_name`varchar(255)NOT NULL,
`privilege_type`varchar(4)NOT NULL,
`sort_no`varchar(4)DEFAULT NULL,
`menu_uri`varchar(255)DEFAULT NULL,
顾虑太多PRIMARY KEY(`id`)
)
ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO`privilege_menu`VALUES('1','0','manage','管理','1','1',null);
三角形面积
人生短暂INSERT INTO`privilege_menu`VALUES('2','1','log_manage','⽇志管理','2','1',null);
INSERT INTO`privilege_menu`VALUES('3','1','system_manage','系统管理','2','2',null);
户口本丢了怎么办INSERT INTO`privilege_menu`VALUES('4','2','system_log','系统⽇志','3','1','/page/log_manage/system_log');
INSERT INTO`privilege_menu`VALUES('5','2','bussiness_log','业务⽇志','3','2','/page/log_manage/business_log');
INSERT INTO`privilege_menu`VALUES('6','3','ur_manage','⽤户管理','3','1','/page/system_manage/ur_manage'); INSERT INTO`privilege_menu`VALUES('7','3','role_manage','⾓⾊管理','3','2','/page/system_manage/role_manage'); INSERT INTO`privilege_menu`VALUES('8','3','privilege_manage','权限管理','3','3','/page/system_manage/privilege_manage');
隔着门缝吹喇叭的歇后语
三明美食
描写七夕的古诗1.通过传统AOP编程来实现advice(通知),进⾏怎么样的增强