@GetMapping("/cadastrarProduto")
public ModelAndView cadastrarProduto() {
modelAndView = new ModelAndView("pages/index");
addObject("produtoEntity", new ProdutoEntity());
modelAndView;
}
Is it possible with ajax to change the values of the attributes of the ProductEntity () object passed in the modelAndView of the above example?