GeoServer改造Springboot启动五(解决接口返回xml而不是json)

请求接口返回的是xml,而不是我们常用的json,问题呈现如下图 40

图 40请求接口返回XML

在@RequestMapping注解上增加produces = {MediaType.APPLICATION_JSON_UTF8_VALUE}

图 41增加produces

相关推荐
CoderYanger18 分钟前
Java EE 进阶:15. Linux基本使用和程序部署(第二弹):部署 Web 项目到 Linux
linux·服务器·数据库·spring boot·spring·阿里云·java-ee
程序员小杰@36 分钟前
SpringBoot + SpringCloudAlibaba 日志 & 链路追踪 完整总结
java·spring boot·后端
IMPYLH2 小时前
JSON.stringify 悄悄丢掉的字段
json
IT研究室3 小时前
最新计算机毕业设计选题推荐-基于spring boot的房屋交易系统-网站-文档指导-Java-springboot
java·spring boot·课程设计
RuoyiOffice3 小时前
Java物联网项目拆解:设备接入之后,数据怎样真正用起来
java·vue.js·spring boot·物联网·iot·企业管理·ruoyi office
淘源码A5 小时前
智能预问诊系统源码,基于SpringBoot、MyBatis-Plus、uni-app等技术栈,开箱即用
java·spring boot·源码·二次开发·电子病历·预问诊·智能预问诊
SEO_juper9 小时前
Node.js Product 结构化数据生成器:给产品页一键生成 JSON-LD
开发语言·前端·javascript·人工智能·node.js·json·1024程序员节
钱栈up11 小时前
删 18 个模块全程零报错:烧结系统单体拆微服务的 P0 实操
spring boot·微服务
熊猫钓鱼>_>1 天前
Java处理JSON编程实用技巧
json
软件技术NINI1 天前
基于SpringBoot的社区留守儿童帮扶系统
java·spring boot·后端