SpringMVC
SpringMVC
带着天使反上帝 - Kaybee
一些笔记:https://liukay.github.io/KaybeeNotes/#/?id=kaybeenotes
展开
-
SpringMVC的json数据绑定Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported
总结一下今天遇到的问题: 第一个问题:在使用SpringMVC的时候,前台发送ajax请求传输json数据到后台报错org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported 前台代码:原创 2017-04-27 19:09:20 · 44494 阅读 · 2 评论 -
SpringMVC数据绑定总结
SpringMVC数据绑定总结SpringMVC数据绑定 Kay 2017.7.5整理 源码地址:https://github.com/LiuKay/springmvc1. 基本类型推荐使用包装类型,注意@RequestParam注解的使用,其属性可以设置参数别名、设置参数是否必须,以及默认值 @RequestMapping(value = "/baseType") @Respo原创 2017-07-05 22:28:44 · 570 阅读 · 0 评论 -
SpringMVC学习--POST请求中文乱码问题
在之前我们没有用基于注解的控制器时,controller是这么写的:public class SaveProductController implements Controller{ private static final Log logger= LogFactory.getLog(SaveProductController.class); @Override...原创 2016-12-28 15:07:55 · 7264 阅读 · 0 评论