GeoServer改造Springboot启动一(创建springboot)
GeoServer改造Springboot启动二(修改源码集成Swagger)
GeoServer改造Springboot启动三(集成jdbcconfig和jdbcstore)
GeoServer改造Springboot启动四(解决post接口方法无法用@requestbody为入参的请求)
GeoServer改造Springboot启动五(解决接口返回xml而不是json)
请求接口返回的是xml,而不是我们常用的json,问题呈现如下图 40
在@RequestMapping注解上增加produces = {MediaType.APPLICATION_JSON_UTF8_VALUE}
图 41增加produces