Giter Site home page Giter Site logo

mattbertolini / spring-annotated-web-data-binder Goto Github PK

View Code? Open in Web Editor NEW
27.0 6.0 4.0 644 KB

Bind query params, form data, headers, cookies, session data, and more to a Java bean in Spring MVC and Spring WebFlux

License: Apache License 2.0

Java 99.98% Shell 0.02%
spring spring-web spring-webmvc spring-webflux java beans databinding jvm spring-mvc jax-rs

spring-annotated-web-data-binder's People

Contributors

mattbertolini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

spring-annotated-web-data-binder's Issues

Handling MultipartFile

Does this library work with MultipartFile?
Other fields of consumes = {"multipart/form-data"} request are handled properly by @FormParameter.
But MultipartFile is always set to null.

Getting WebRequestDataBinder class cast exception with Spring boot 3.x version

Hi @mattbertolini I started using this library to replace multiple @RequestParam and @PathVariable annotation for a cleaner code. But, getting below error at runtime. I am using spring boot 3.x latest version.

class org.springframework.web.servlet.mvc.method.annotation.ExtendedServletRequestDataBinder cannot be cast to class org.springframework.web.bind.support.WebRequestDataBinder (org.springframework.web.servlet.mvc.method.annotation.ExtendedServletRequestDataBinder and org.springframework.web.bind.support.WebRequestDataBinder are in unnamed module of loader 'app')

Help is appreciated.

Support records

Would it be much work to support Java 15 records?
It seems that those are not working currently.
I guess the main problem is get missing from record "getters".

Warning: dependencies.dependency.version for javax.servlet-api is missing

I'm getting this warning:

> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
Errors occurred while build effective model from C:\Users\nikol\.gradle\caches\modules-2\files-2.1\com.mattbertolini\spring-webmvc-annotated-data-binder\0.5.0\7704370e554c6f598147467c65471061a0d4909f\spring-webmvc-annotated-data-binder-0.5.0.pom:
    'dependencies.dependency.version' for javax.servlet:javax.servlet-api:jar is missing. in com.mattbertolini:spring-webmvc-annotated-data-binder:0.5.0

> Task :Application.main()

I've tried to stifle it by specifying the version but it didn't work:

implementation 'javax.servlet:javax.servlet-api:4.0.1'

Exclusion didn't help either.

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.