I'm currently using Spring boot updated version 3.2.0 and implemented the SecurityFilterChain after running the application I got this message:
2023-12-11T12:08:04.541+06:00 WARN 28000 --- [nio-8080-exec-1] o.s.w.s.h.HandlerMappingIntrospector : Cache miss for REQUEST dispatch to '/' (previous null). Performing CorsConfiguration lookup. This is logged once only at WARN level, and every time at TRACE. 2023-12-11T12:08:04.550+06:00 WARN 28000 --- [nio-8080-exec-1] o.s.w.s.h.HandlerMappingIntrospector : Cache miss for REQUEST dispatch to '/' (previous null). Performing MatchableHandlerMapping lookup. This is logged once only at WARN level, and every time at TRACE. The Code of SecurityFilterChain:
@Bean public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { http .authorizeHttpRequests((requests) -> requests .requestMatchers("/", "/Signup", "/css/**", "/js/**").permitAll() .anyRequest().authenticated() ) .formLogin((form) -> form .loginPage("/Login") .permitAll() ) .logout((logout) -> logout.permitAll()) .formLogin((form) -> form.defaultSuccessUrl("/home", true)); return http.build(); } Any idea why I got this message. When I hit localhost:8080 automatically goes to login page its fine but won't go to signup page when I clicked on signup button it just redirect to login page. Can you provide details working process and to resolve the problem.
I followed the official documentation to implement SecurityFilterChain
Thank you in advance.