JSON
哒哒哒~bong
这个作者很懒,什么都没留下…
展开
-
JSON example
{ "people":[ {"firstName":"Brett","lastName":"McLaughlin","email":"aaaa"}, {"firstName":"Jason","lastName":"Hunter","email":"bbbb"}, {"firstName":"Elliotte","lastName":"Haro转载 2016-03-11 10:10:58 · 400 阅读 · 0 评论 -
SpringMVC JSON实现
1.配置ViewResolver在mvc-dispatcher-servlet.xml中配置ViewResolver<bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver"> <property name="order" value="1" />原创 2016-03-11 10:41:42 · 421 阅读 · 0 评论 -
Spring MVC Bean2Json(非反射)
Controllerpackage com.springapp.mvc;import org.codehaus.jackson.JsonGenerationException;import org.codehaus.jackson.map.ObjectMapper;import org.springframework.http.converter.json.Jackson2ObjectMappe原创 2016-03-11 13:10:29 · 649 阅读 · 0 评论 -
Json与javaBean之间的转换工具类
需要 * json-lib-2.4-jdk15.jar * ezmorph-1.0.6.jar * commons-collections-3.1.jar * commons-lang-2.0.jar * 支持 import java.lang.reflect.Field;import java.util.ArrayList;import转载 2016-03-14 08:57:39 · 440 阅读 · 0 评论 -
HTTP 传输类型&MIME类型 整理
getContentTyperequest数据Mimemultipart/form-datatext/htmltext/plainimage/pngimage/gifimage/jpegtext/xml原创 2016-06-03 14:08:53 · 4541 阅读 · 0 评论