How to add matchers to HttpSecurity spring web secure
问题 I try to implement spring security, but I have many roles and privileges, then I want to add the roles dynamically to each other resources. Like it: @Override protected void configure(HttpSecurity http) throws Exception { super.configure(http); //PageRequest p = new PageRequest(0, 1000); List<RolePrivilegeConfig> rolePrivilegesConfig=rolePrivilegeConfigService.findAll(); for (RolePrivilegeConfig rolePrivilegeConfig : rolePrivilegesConfig) { http.authorizeRequests() .antMatchers("/login")