Skip to content

@InitBinder parameter binding failure causes IllegalStateException #34647

@leftnine

Description

@leftnine

When using @InitBinder to bind custom parameters, report IllegalStateException:Cannot access properties on null bean instance 'query'. In debug, WebDataBinder.target is null

Steps to reproduce
test project https://github.com/leftnine/demo.git

  1. Run application
  2. Send http request curl -X GET --location "http://localhost:8080/test/test1" -H "teanntId: 1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions