i find a lot of questions about this problem but i did not solve... I have this method:
@RequestMapping(value="/testInit")
public @ResponseBody Output test() throws Exception {
return new Output(true);
}
and i had jackson libreary to classpath, into applicationContext but i still get 406 error with this jquery call:
$.ajax({
url: "/testInit",
type: "get",
dataType: "json"
});