Код: Выделить всё
parameter 0 of method setfilterchains in org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration required a bean of type org.springframework.security.oauth2.jwt.JWTDecoder could not be found
< /code>
Когда я попробовал одно из решения из ошибки развертывания Heroku «требует боба типа 'org.springframework.security.oauth2.jwt.jwtdecoder', который не может быть найден», то есть добавление: < /p>
@SpringBootApplication(scaneBasePackages="org.springframework.security.oauth2.jwt")
< /code>
Я не вижу ошибки. < /p>
Есть еще одно решение для введения боба.@Bean
public JwtDecoder jwtDecoder() {
return JwtDecoders.fromIssuerLocation("your-issuer-uri");
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... pring-boot