Is there any annotation to do this? I only add annotation in Coordinates class. if it is a SpringBoot project, I want to "Coordinates" as param, so I have to use this way..It's not good coding way..
@RestController
public class JacksonController {
@Resource
ObjectMapper objectMapper;
@GetMapping("getCoordinates ")
public void getCoordinates (@RequestBody Map<String, Object> map){
var pet = objectMapper.convertValue(map.get("Coordinates "), Coordinates .class);
}
}