在权限配置中,使用SpringBoot提供的SpEL表达式进行配置权限访问控制。
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().anyRequest().access("@rbacService.hasPermission(request,authentication)");
}
在权限配置中,使用SpringBoot提供的SpEL表达式进行配置权限访问控制。
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().anyRequest().access("@rbacService.hasPermission(request,authentication)");
}
让时间为你证明