1、favorPathExtension参数表示是否开启后缀,默认true。(使用形式如/account/a.json、/account/a.xml的方式)
2、favorParameter 参数表示是否开启request参数识别,默认为false。(使用形式/account/a? format=json、/account/? format=xml的方式)
3、parameterName 参数表示使用参数的名字,默认format,如果配置为media Type,则请求格式变为/account/a?mediaType=json
4、ignoreAcceptHeader表示是否关闭accept头识别,默认false,即默认开启accept头识别。
5、defaultContentType表示服务器默认的MediaType类型
text/xml:它是一种使用HTTP作为传输协议,XML作为编码方式的远程调用规范
Content-type=application/x-www-form-urlencoded,参数上不能增加@RequestBody的注解。