Describe the bug I have a service with this metod.
@DeleteMapping
@PreAuthorize("hasAuthority('ROLE_ADMIN')")
public ResponseEntity<Void> removerCredenciaisDeUsuarios(@RequestBody @Valid RemoverUsuariosRequestDTO removerUsuariosRequestDTO) {
userService.removerCredenciaisDeUsuarios(removerUsuariosRequestDTO.getClientIds());
return ResponseEntity.noContent().build();
}
in my consumer feign service i have a interface to consume this metod.
``` java @DeleteMapping(value = "/users", produces = MediaType.APPLICATION_JSON_VALUE)
ResponseEntity
my class UserCredentialsRequest
public record UserCredentialsRequest(
Set
i`m using Resilience4jFeign to configure
return Resilience4jFeign .builder(decorators) .client(new OkHttpClient()) .contract(new SpringMvcContract()) .encoder(new JacksonEncoder()) .decoder(new JacksonDecoder()) .logLevel(Logger.Level.FULL) .logger(new Slf4jLogger()) .options(new Request.Options( 30, TimeUnit.SECONDS, 30, TimeUnit.SECONDS, false)) .target(PixOAuthClient.class, pixOAuthProperties.getApiUrl());
In my fallback class i get the request, and is ok for me.
DELETE https://localhost:8080/users HTTP/1.1 Accept: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJ1c2VyLmFkbWluIl0sImV4cCI6MTY5NzU3ODQzMCwiYXV0aG9yaXRpZXMiOlsiUk9MRV9BRE1JTiJdLCJqdGkiOiJKcVRyQW5Qd05Dd2FYa2ZZR2hXa2E4VFBKeVEiLCJjbGllbnRfaWQiOiJjM0JwTFhSbGNtMXYifQ.IAKm0wMqEhz5zAv3qk0Y8ziGNKTnIL2jNVfvEAiE3wk Content-Length: 25
{ "clientIds" : [234324652+36eqw6e5qwsadas ] } ```
Comment From: wangjiancheng180
Hello can you please tell me how you solved this problem? I have a similar problem thanks