feign client Spring boot

37 Views Asked by At
@FeignClient(name = "usermanagement-service", url = "${application.config.user.url}")
public interface UserClient {

@PostMapping(value = "/register")
public ResponseEntity<Object> addNewUser(@ModelAttribute @Valid InternalUserDto user,@RequestParam MultipartFile image);

}

   public Object saveInternalUsers(@ModelAttribute InternalUserDto user,@Nullable MultipartFile file) {
        return userClient.addNewUser(user,file).getBody();
    }

I am getting null when user is get into addNewUser in userClient userClient.addNewUser(user,file).getBody(); how to solve this issue

I need to save the internaluserDto data using feignClient springboot

0

There are 0 best solutions below