Solve the problem that springsecurity resource permissions are loaded at one time, resulting in the problem of restarting the service for role granting resources

DefaultSecurityMetadataSource
Map (corresponding to the authority to put the resource menu) public static type, only one copy of the simple interest class is obtained, which is the earliest,
//update the map when updating the role menu
roleMenuservice.updateRoleMenu(menuDtos,roleId);
        defaultSecurityMetadataSource .init();//Using the static map feature
        return "redirect:index.do";
    }

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326779741&siteId=291194637