Because IE itself does not support application so in order to output the returned data to the callback function, we use the spring MVC built-in annotations, the details are as follows:
@RequestMapping (value= "EFV", produces= "Text/html;charset=utf-8")
We use the parameter produces to dynamically specify the type to be returned, so that the code is not only written in a uniform manner, but also improves the consistency and readability of the code without the use of more primitive processing.
It's about the same way you work with JSON.
1, use @requestmapping (value= "EFV", produces= "Text/html;charset=utf-8") to declare method request address and return type
2, using @responsebody to return data to the callback function
3, the return type is of type string.
Spring MVC does not support Content-type=appliaction/json resolution for IE, the duang-scheme updates