春季启动-从2.0.7升级到2.1.7后,API的XML响应间歇性返回

时间:2019-10-10 12:55:15

标签: spring-boot

@RestController
@RequestMapping("/appresource")
@Api(value = "AppResource", description = "Operations pertaining
    AppResources")
public class AppResource {

...... ......

//Below api is added with produces for application/json
@RequestMapping(value = "/getappversion", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)

但是API仍会间歇性地返回XML格式的响应。

0 个答案:

没有答案