RESTEASY003145: Unable to find a MessageBodyReader of content-type application/json and type class org.keycloak.representations.AccessTokenResponse

前端 未结 6 1479
滥情空心
滥情空心 2020-12-20 12:45

I\'m trying to test Keycloak REST API. Instaled the version 2.1.0.Final. I can access the admin through browser with SSL without problems.

I\'m using the code above:

6条回答
  •  -上瘾入骨i
    2020-12-20 13:04

    Or if you create client with proxy then better to initialize provider factory before:

        ResteasyProviderFactory instance=ResteasyProviderFactory.getInstance();
        RegisterBuiltin.register(instance);
        instance.registerProvider(ResteasyJackson2Provider.class);
    

提交回复
热议问题