I am creating a user login with verification. But when i was doing the security part i met with an issue.
protected void configure(HttpSecurity http) throws Exception { http .csrf().disable() .authorizeRequests() .antMatchers("/auth/login", "/auth/signup", "/auth/verify").permitAll() .antMatchers(HttpMethod.GET, "/movies/**").permitAll() .anyRequest().authenticated() .and() .addFilter(jwtTokenFilter, UsernamePasswordAuthenticationFilter.class);
Here i get the error of,
“The method addFilter(Filter) in the type HttpSecurity is not applicable for the arguments (JwtTokenFilter, Class)”
If anyone came up with a solution is appreciated and most welcome.