RuoYi-Vue3.8.6 新建Controller、设置权限(@PreAuthorize) 作者:马育民 • 2023-09-03 20:35 • 阅读:10044 # Controller 与普通的Controller相同 # 设置权限 在方法上增加下面注解: ``` @PreAuthorize("@ss.hasPermi('patient:list')") ``` 添加菜单时,需要指定权限字符,详见 [链接](https://www.malaoshi.top/show_1IX69OMFleDp.html "链接") 原文出处:http://www.malaoshi.top/show_1IX6AVWUYd2T.html