**How can i pass Json Data in controller as a @RequestBody if i am passing as a Map. I want to manually pass the value. I have mentioned my source code down below. . . **
@RestController
public class CustomerController {
private static final Logger logger = LoggerFactory.getLogger(CustomerController.class);
@Autowired
private CustomerService customerService;
@PostMapping("/customer/save")
public Result save(@RequestBody Map<String, Object> custData){
logger.info(" :::::::::::::::::::: CoreCustomer Create Method ::::::::::::::::::::::");
Result result = customerService.save(custData);
return result;
}
@GetMapping("/customer")
public Result getAll(){
logger.info("::::::::::::::::::::: GetAll Method in Customer ::::::::::::::::::");
Result result = customerService.getAll();
return result;
}
My Swagger UI is down below: enter image description here
In above image i am not able to get build-in input field. Could someone help me with this.