RuoYi-Vue3.8.6 新建Controller、设置权限(@PreAuthorize)

Controller

与普通的Controller相同

设置权限

在方法上增加下面注解:

@PreAuthorize("@ss.hasPermi('patient:list')")

添加菜单时,需要指定权限字符,详见 链接


原文出处:https://malaoshi.top/show_1IX6AVWUYd2T.html