Giter Site home page Giter Site logo

spring-multirequestbody's Introduction

Spring-MultiRequestBody

项目主要功能

为Spring多@RequestBody支持,来解决Controller中POST方式JSON格式请求时

  1. 无法直接用@RequestBody解析基本类型包装类的问题。
  2. 无法使用@RequestBody接收多个实体的问题。

项目优势

  1. 支持通过注解的value指定JSON的key来解析对象。
  2. 支持通过注解无value,直接根据参数名来解析对象
  3. 支持基本类型的注入
  4. 支持GET和其他请求方式注入
  5. 支持通过注解无value且参数名不匹配JSON串key时,根据属性解析对象。
  6. 支持多余属性(不解析、不报错)、支持参数“共用”(不指定value时,参数名不为JSON串的key)
  7. 支持当value和属性名找不到匹配的key时,对象是否匹配所有属性。

重要更新记录

2019年02月07日 fix 当list参数为空时,parameterType.newInstance会导致异常

参考资料

spring-multirequestbody's People

Contributors

rumingruyue avatar chujianyun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.