摘要:
在Spring中,filter默认继承OncePerRequestFilter, OncePerRequestFilter源代码如下: /* * Copyright 2002-2008 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you m... 阅读全文
摘要:
Gson网址http://code.google.com/p/google-gson/这段时间项目中用到了json数据,采用的是google德Gson,经过两天的学习,算是有了点收获,现在把Gson的基本应用跟大家分享一下,Gson主要完成JavaBean和json数据之间的转换,:JavaBean--->json,称之为序列化(Serialization)json--->JavaBean,称之为反序列化(Deserialization)1、Gson对普通JavaBean的处理Person.javapublic class Person { private Integer id; 阅读全文
![](/skins/gray/images/separator.gif)