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

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

图 40请求接口返回XML

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

图 41增加produces

相关推荐
代码or搬砖1 天前
RBAC(权限认证)小例子
java·数据库·spring boot
生产队队长1 天前
Web:免费的JSON接口
json
咸鱼加辣1 天前
【java面试题】springboot的生命周期
java·开发语言·spring boot
VX:Fegn08951 天前
计算机毕业设计|基于springboot + vue敬老院管理系统(源码+数据库+文档)
数据库·vue.js·spring boot·后端·课程设计
Honmaple1 天前
中国四级城市联动数据,包含港澳台,内含json , sql , python 脚本
python·sql·json
北漂IT民工_程序员_ZG1 天前
SpringBean生命周期,动态代理
java·spring boot·spring
老华带你飞1 天前
建筑材料管理|基于springboot 建筑材料管理系统(源码+数据库+文档)
java·数据库·vue.js·spring boot·后端·学习·spring
ss2731 天前
SpringBoot+vue养老院运营管理系统
vue.js·spring boot·后端
是梦终空1 天前
JAVA毕业设计259—基于Java+Springboot+vue3工单管理系统的设计与实现(源代码+数据库+开题报告)
java·spring boot·vue·毕业设计·课程设计·工单管理系统·源代码