#Spring Boot showing blank page in browser

5 messages · Page 1 of 1 (latest)

lethal scroll
#

Hey guys! I have a problem with my Spring Boot project showing blank pages when I log into Spring security using my credentials

I have this as my SecurityConfig class:

@Configuration

public class SecurityConfig {

    @Bean
    public SecurityFilterChain securityFilterChain(
            HttpSecurity http) throws Exception {

        http
        .authorizeHttpRequests((authorize) -> authorize
            .anyRequest().authenticated()
        )
        .formLogin(Customizer.withDefaults())
        .httpBasic(Customizer.withDefaults());
    return http.build();
}
}

Even when I go to http://localhost:8080/swagger-ui.html nothing shows up

vivid elkBOT
#

<@&1004656351647117403> please have a look, thanks.

lethal scroll
#

Thanks but I solved the problem!

It was my unused JWT filter class:

@AllArgsConstructor
@Component
public class JwtFilterRequest  {

//    @Override
//    protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
//            throws ServletException, IOException {
//        // TODO Auto-generated method stub
//
//    }

}
vivid elkBOT
grave ridge