自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 springmvc controller返回中文字符串

1.上代码@RequestMapping(value = "/string", produces={"text/html;charset=UTF-8"}, method = { RequestMethod.GET,RequestMethod.POST }) @ResponseBody public String string(HttpServletRequest request, HttpServ...

2018-03-29 15:40:09 1968 1

原创 springmvc controller中返回已生成的json数据

1.上代码 @ResponseBody @RequestMapping(value = "/json", produces={"application/json; charset=UTF-8"}, method = { RequestMethod.GET, RequestMethod.POST }) public String json(HttpServletRequest reques...

2018-03-29 14:22:02 910

原创 springmvc controller中返回已经生成的xml数据

1.上代码import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.Requ...

2018-03-29 11:05:49 3642

转载 js中判断字符串是否为json

function isJson(){ if(typeof str == 'string'){ try{ var obj = JSON.parse(data); if(typeof obj == 'object' && obj){ return true; }else{ return false; }

2018-03-22 15:50:40 2847

原创 springmvc中使用qrgen(QRCode)生成二维码图片并显示在前台html img标签中

1.springmvc controller中使用QRCode生成二维码图片 2.前台JSP页面中显示此图片

2018-03-22 15:02:56 3063

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除