Hallo ich möchte konfigurieren für welche Seiten ich einen Login brauche
jedoch bekomme ich für den chainbuilder "Could not autowire. No beans of 'HttpSecurity' type found."
Java:
@Configuration
public class SecurityConfig {
@Bean
public SecurityFilterChain configure(HttpSecurity chainBuilder) throws Exception {
chainBuilder.authorizeHttpRequests(
configurer -> configurer
.anyRequest().authenticated()
).formLogin();
return chainBuilder.build();
}
jedoch bekomme ich für den chainbuilder "Could not autowire. No beans of 'HttpSecurity' type found."