Boa noite.
Estou recebendo a exception abaixo após a implementação do Spring Security. Tentei buscar maiores informações mas sem sucesso.
org.springframework.web.client.HttpClientErrorException: 415 null
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91)
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:641)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:597)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:557)
at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:357)
at br.com.kasadocodigo.loja.controllers.PaymentController.lambda$0(PaymentController.java:37)
at org.springframework.web.context.request.async.WebAsyncManager$4.run(WebAsyncManager.java:316)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.lang.Thread.run(Thread.java:844)
Hibernate: select distinct product0_.id as id1_0_, product0_.description as descript2_0_, product0_.pages as pages3_0_, product0_.releaseDate as releaseD4_0_, product0_.summary as summary5_0_, product0_.tittle as tittle6_0_, prices1_.Product_id as Product_1_0_0__, prices1_.type as type2_1_0__, prices1_.value as value3_1_0__ from Product product0_ inner join Product_prices prices1_ on product0_.id=prices1_.Product_id where product0_.id=?
Hibernate: select distinct product0_.id as id1_0_, product0_.description as descript2_0_, product0_.pages as pages3_0_, product0_.releaseDate as releaseD4_0_, product0_.summary as summary5_0_, product0_.tittle as tittle6_0_, prices1_.Product_id as Product_1_0_0__, prices1_.type as type2_1_0__, prices1_.value as value3_1_0__ from Product product0_ inner join Product_prices prices1_ on product0_.id=prices1_.Product_id where product0_.id=?
org.springframework.web.client.HttpClientErrorException: 415 null
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91)
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:641)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:597)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:557)
at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:357)
at br.com.kasadocodigo.loja.controllers.PaymentController.lambda$0(PaymentController.java:37)
at org.springframework.web.context.request.async.WebAsyncManager$4.run(WebAsyncManager.java:316)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.lang.Thread.run(Thread.java:844)