Untitled
.authorizeHttpRequests( authorize -> authorize .requestMatchers("/error").permitAll() .requestMatchers("/admin/**").hasAuthority(AuthorityName.ADMIN.name()) .requestMatchers("/deny/**").denyAll() .anyRequest().authenticated());
.authorizeHttpRequests( authorize -> authorize .requestMatchers("/error").permitAll() .requestMatchers("/admin/**").hasAuthority(AuthorityName.ADMIN.name()) .requestMatchers("/deny/**").denyAll() .anyRequest().authenticated());