SpringMVC:JSON
@ResponseBody
params="json":访问我这个方法的时候一定要有参数名为json
返回值User
jackson-all-1.9.0.jar
@RequestMapping(value="/{nickname}",method=RequestMethod.GET,params="json")
@ResponseBody
public User show(@PathVariable String nickname){
System.out.println(nickname);
return users.get(nickname);
}
http://localhost:7070/SSM/user/lisi?json
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAABqCAIAAABvWo8XAAAeaUlEQVR4nO1d+1dUR7bu/yO/O2vd5U3WJJM4msydzJ3HnUwmGTNjoomjeTnGxGgeJsYIiCKIbzFG4gPjAxRE5Kko0LxBQQkiINA08migoZuGfvHqbuK5PxSWRVWd6nNOd9NA9re+pd3Vders2rVrf6fqnG50FpcPCAQCgUAN1A26fEAgEAgEaiBICBAIBAI1Ujfo9Clh38hkg9Gsr2nJKq67mFeZnFeRnFdxMa8yq7hOX9PSYDT32z0KmwICgUDgwqBuwOkT8+GgS1/bmpxbkam/e7uxq7Vn6OGgq394os82/nDQ1dozdLuxK1N/Nzm3ovhOW6fF7bdBIBAIBC4MiiSkz+4pqzcm55aX1hl6beND7ikBe23jZT8ZknPLy+919Nu9Ye8YEAgEAkNNWQl5OOjOKLpz81azX/EgaRoau1HdlFF05+GgK+x9AwKBQGBIqTM7fSzb+u0Xr1Xdbuqyuqc08FZj15akW88fcz13UgICgUDgQqXO7PBRbDc7z2WXNbT3W11Tmllv6E/JLbM7XVMAAAAAWKCgJaTHNpmSV1nd0BmIfiBWN3RmFNzy+nwSAAAAABYidP0OH8nC2rac8nsW11RQmFNWX3vfEO4+AgAAACAkmCEhBrPzzNWSLuuoEnlIuph57nKuuE6XdfTHzGKneyzodjc3N1MlYd8TBC4AAgAAVdD1OXyYN2490N9tG3RN+eWO+IRnlrz89AsvJ5y8IK6pv9tW8VOL2IhHjx6ZzebS0tL09PT09PTS0tKBgYFHjx4JDgEJAYaCAABAFXR9dh9it23yTGZJ79DEoHNKzOg9CUv/8PfXVn7wtxXv/ualvww4fILKJuv42awS39S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32lGsPt/uqEIrxVW2D/xqB7WxyI0Yt2DAKbjtqyyWZDCuYIeL2qRfB6q9fiKefwGD2bSiM5DpZYIaqcr+jwD2dEpNCOrG5CUtV/aDYoGQ45AqVOHwezSO5Zv2OVIDmzQX9kEItIaFO/cFqRxAEcunV7zzhvqXaEYS+37QeCvidDNwhDp2Rmv0pbocqVCshau0MIpScXUOFAM3w233xuGhItXNqHimPOrEBas2btbQgBkjIk9dsnAlOpDaVcF8LQt9PT0IAv50N7gTQYJJff0rykiaXd9h/lZ9XiZ1BhCqBVFUhQEsCkRBuaM2veaRqXAR6BhIyvyWEWx4sCfFbPpuhr1MD8hC/zYbCVO5btePILZ9fEqIqFENtTxAlRFWDc2oesWYoLJerABLiZ3YpSUOCmtwwUt6m+FgNqWo2JSQQvymE+EAlzSqsE8h4yZ1L8ziqbZ/9iNtm0McrkJQd6nFRYo+cSUEf37DMI+USosFvGs47ywhmasDgfiopHhu5amy5hqRJGkm94NrPlstVlqvGPYpqgXwhd16FXVPlDfJYvy37RdAtFDQucCN7iKCc+5p7ar+dpcxQ2Du/1eQ6KzZJYGcglrAtK/G/8gPF1biuYI+VZmseyfU3WOV+z66wZkgR8svbUGPOGjZfQE05QR0l7QSrmobKgEAArp5HmFMJea7YoQFzyo/zGrPjRrXjpfaiDKAN4GRAIIDQAQAAAIBGgIQAAAAAQCNAQgAAAACgESAhAAAAANAIkBAAAAAAaARICAAAAAA0AiQEAAAAABoBEgIAAAAAjQAJAQAAAIBGgIQAAAAAQCNAQgAAAACgESAhAAAAANAIkBAAAAAAaARICAAAAAA0AiQEAAAAABrx//Ent4uK2j3wAAAAAElFTkSuQmCC" alt="" />
SpringMVC:JSON的更多相关文章
- SpringMVC: JSON
SpringMVC:JSON讲解 什么是JSON? JSON(JavaScript Object Notation, JS 对象标记) 是一种轻量级的数据交换格式,目前使用特别广泛. 采用完全独立于编 ...
- SpringMVC:JSON形式输出(基于Fastjson)
在Spring3.0中,@ResponseBody标记可以将对象"封装"为JSON形式的数据,并输出,下面的例子中使用的是阿里的Fastjson JSONaz解析工具,在sprin ...
- SpringMVC——处理 JSON:使用 HttpMessageConverter
一.SpringMVC处理JSON流程 1. 加入 jar 包: jackson-annotations-2.1.5.jarjackson-core-2.1.5.jarjackson-databind ...
- SpringMVC(2):JSON
一,JSON 介绍 JSON (JavaScript Object Notation, JS 对象简谱) 是一种轻量级的数据交换格式.易于人阅读和编写,同时也易于机器解析和生成,并有效地提升网络传输效 ...
- SpringMVC学习--json
简介 json数据格式在接口调用中.html页面中较常用,json格式比较简单,解析还比较方便.比如:webservice接口,传输json数据. springmvc与json交互 @RequestB ...
- 【Spring学习笔记-MVC-3.1】SpringMVC返回Json数据-方式1-扩展
<Spring学习笔记-MVC>系列文章,讲解返回json数据的文章共有3篇,分别为: [Spring学习笔记-MVC-3]SpringMVC返回Json数据-方式1:http://www ...
- SpringMVC关于json、xml自动转换的原理研究[附带源码分析 --转
SpringMVC关于json.xml自动转换的原理研究[附带源码分析] 原文地址:http://www.cnblogs.com/fangjian0423/p/springMVC-xml-json-c ...
- springMvc中406错误解决,springMvc使用json出现406 (Not Acceptable)
springMvc中406错误解决, springMvc使用json出现406 (Not Acceptable) >>>>>>>>>>> ...
- SpringMVC(三)-- 视图和视图解析器、数据格式化标签、数据类型转换、SpringMVC处理JSON数据、文件上传
1.视图和视图解析器 请求处理方法执行完成后,最终返回一个 ModelAndView 对象 对于那些返回 String,View 或 ModeMap 等类型的处理方法,SpringMVC 也会在内部将 ...
随机推荐
- 聊聊、Nginx GDB与MAIN
上一篇文章主要介绍了 Nginx 在 Window 和 Linux 平台上的安装.本章节主要介绍 Nginx 源码学习方法和源码结构,以及 Nginx 启动时 main 方法的位置,参数信息.后面的章 ...
- python面向对象、模块讲解
(1)模块的介绍: 1.什么是模块 模块是一系列功能的集合体 常见的模块形式(自定义模块.第三方模块.内置模块): 1.一个module.py文件就是一个模块,文件名是module.py,而模 ...
- Wannafly模拟赛2
Contest 时间限制:1秒 空间限制:131072K 题目描述 n支队伍一共参加了三场比赛. 一支队伍x认为自己比另一支队伍y强当且仅当x在至少一场比赛中比y的排名高. 求有多少组(x,y),使得 ...
- [错误处理]: How to deal with chrome failing to launch GPU process
https://github.com/jupyter/notebook/issues/2836 "export BROWSER=google-chrome" command wor ...
- 【Mysql 优化 6】mysql优化的内容和思路
根据最近做mysql优化,以及参照的官方文档的一些知识点,总结一下,如何下手去优化mysql 数据库.PS:更多可能是我个人的笔记总结记录,仅供参考 一.优化的内容 可以优化的内容,从范围的大小,可以 ...
- Welcome-to-Swift-23访问控制(Access Control)
访问控制可以限定你在源文件或模块中访问代码的级别,也就是说可以控制哪些代码你可以访问,哪些代码你不能访问.这个特性可以让我们隐藏功能实现的一些细节,并且可以明确的指定我们提供给其他人的接口中哪些部分是 ...
- Welcome-to-Swift-16自动引用计数(Automatic Reference Counting)
Swift使用自动引用计数(ARC)来跟踪并管理应用使用的内存.大部分情况下,这意味着在Swift语言中,内存管理"仍然工作",不需要自己去考虑内存管理的事情.当实例不再被使用时, ...
- 关闭webkit浏览器的自动完成,修正,大写
关闭input自动完成<input name="q" type="text" autocomplete="off"/>关闭整个表 ...
- 学习 WebService 第五步:在Local创建测试用WebService(WSDL)
[准备] Eclipse+Tomcat7(Tomcat端口修改为不冲突的值) axis2 1.7.7 jar包(没有来这里下载:http://www.apache.org/dyn/closer.lua ...
- java面试题之Thread和Runnable是什么关系?
Thread实现了Runnable接口,使得run方法支持多线程: 因类的单一继承原则,推荐多实用Runnable接口