Spring OAuth2 resource server startup failure

I’m trying to implement auth-server – resource-server – client-server cluster.
I successfully can start auth server but when I try to run resource server I get the following error

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jwtDecoder’ defined in class path resource [io/xdata/group/exchange/configuration/SecurityConfig.class]: Failed to instantiate [org.springframework.security.oauth2.jwt.JwtDecoder]: Factory method ‘jwtDecoder’ threw exception with message: Unable to resolve the Configuration with the provided Issuer of “http://127.0.0.1:9000”
.

Caused by: org.springframework.web.client.UnknownContentTypeException: Could not extract response: no suitable HttpMessageConverter found for response type [java.util.Map<java.lang.String, java.lang.Object>] and content type [text/html;charset=UTF-8]

Here are my configs:
Auth server config

@Configuration(proxyBeanMethods = false)
class OAuthServerConfig {


@Bean
@Order(Ordered.HIGHEST_PRECEDENCE)
fun filterChain(http: HttpSecurity): SecurityFilterChain {
    OAuth2AuthorizationServerConfiguration.applyDefaultSecurity(http)
    return http.formLogin(Customizer.withDefaults()).build()
}

@Bean
fun clientRepository(): InMemoryRegisteredClientRepository {
    val client = RegisteredClient.withId(UUID.randomUUID().toString())
        .clientId("frontend")
        .clientSecret("frontend")
        .clientAuthenticationMethod(ClientAuthenticationMethod.CLIENT_SECRET_BASIC)
        .authorizationGrantType(AuthorizationGrantType.AUTHORIZATION_CODE)
        .authorizationGrantType(AuthorizationGrantType.PASSWORD)
        .authorizationGrantType(AuthorizationGrantType.REFRESH_TOKEN)
        .redirectUri("http://127.0.0.1/login/oauth2/frontend")
        .redirectUri("http://127.0.0.1/login/oauth2/authorized")
        .scope(OidcScopes.OPENID)
        .scope("api.all")
        .clientSettings(ClientSettings.builder().requireAuthorizationConsent(true).build())
        .build()

    return InMemoryRegisteredClientRepository(client)
}

@Bean
fun jwkSource(): JWKSource<SecurityContext> {
    val key = generateRsa()
    val set = JWKSet(key)
    return JWKSource { selector, _ -> selector.select(set) }
}

private fun generateRsa(): RSAKey {
    val keyPair = generateRsaKey()
    val publicKey = keyPair.public as RSAPublicKey
    val privateKey = keyPair.private as RSAPrivateKey
    return RSAKey.Builder(publicKey)
        .privateKey(privateKey)
        .keyID(UUID.randomUUID().toString())
        .build()

}

private fun generateRsaKey() = try {
    val generator = KeyPairGenerator.getInstance("RSA")
    generator.initialize(2048)
    generator.generateKeyPair()
} catch (e: Exception) {
    throw IllegalArgumentException()
}

}

Auth server security config

@Configuration
@EnableWebSecurity
class WebSecurityConfig(
private val customAuthenticationProvider: CustomAuthenticationProvider
) {

@Bean
fun authorizationServerSecurityFilterChain(http: HttpSecurity): SecurityFilterChain {
    http.authorizeHttpRequests {
        it.anyRequest().authenticated()
    }.formLogin(withDefaults())
    return http.formLogin(withDefaults()).build()
}

    @Autowired
    fun bindAuthenticationProvider(managerBuilder: AuthenticationManagerBuilder) {
        managerBuilder.authenticationProvider(customAuthenticationProvider)
    }
}

Auth server application.yml

server:
  port: 9000

spring:
  datasource:
    url: jdbc:h2:mem:crypto-exchange
    driver-class-name: org.h2.Driver
    username: sa
    password: password
    hikari:
      schema: PUBLIC
  security:
    oauth2:
      authorizationserver:
        client:
          frontend:
            registration:
              client-id: "frontend"
              client-secret: "{noop}frontend"
              client-authentication-methods:
                - client_secret_basic
              authorization-grant-types:
                - authorization_code
                - refresh_token
              redirect-uris:
                - http://127.0.0.1:8080/login/oauth2/code/frontend
              scopes:
                - openid
                - all

Resource server security config

@Configuration
@EnableWebSecurity
class SecurityConfig {

@Bean
fun userDetailsService(http: HttpSecurity): SecurityFilterChain {
    http.authorizeHttpRequests {
        it.requestMatchers("/api/**")
            .hasAuthority("SCOPE_api.all")
    }.oauth2ResourceServer {
        it.jwt { jwt ->
            jwt.decoder(jwtDecoder())
        }
    }

    return http.build()
}

@Bean
fun jwtDecoder(): JwtDecoder =
    JwtDecoders.fromIssuerLocation("http://127.0.0.1:9000")
}

Resource server application.yml

spring:
  security:
    oauth2:
      resourceserver:
        jwt:
          jwk-set-uri: http://127.0.0.1:9000/.well-known/jwks.json
          issuer-uri: http://127.0.0.1:9000

Any ideas?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật