随笔分类 - SpringMVC
摘要:@RequestParam用来处理Content-Type: 为 application/x-www-form-urlencoded编码的内容。(Http协议中,如果不指定Content-Type,则默认传递的参数就是application/x-www-form-urlencoded类型)Reque
阅读全文
摘要:1、GetMapping(PostMan) https://www.jianshu.com/p/4981911d5e15 接收一个参数(String、Long) 接收一个集合(Map) GET 请求 测试发现 使用 @RequestParm 可以接收到参数 GET 请求 测试发现 不加 @Reque
阅读全文
摘要:1、接收对象 1、对象含有日期参数的接收 如果是SSM 框架,数据库字段类型是datetime,接收时必须加注解 @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 如果数据库字段类型是date,不用加 如果是springboo
阅读全文

浙公网安备 33010602011771号