Код: Выделить всё
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);
Код: Выделить всё
The method addFilter(Filter) in the type HttpSecurity is not applicable for the arguments (JwtTokenFilter, Class)Подробнее здесь: https://stackoverflow.com/questions/786 ... tion-error
Мобильная версия