Example usage for org.springframework.web.bind ServletRequestDataBinder addValidators

List of usage examples for org.springframework.web.bind ServletRequestDataBinder addValidators

Introduction

In this page you can find the example usage for org.springframework.web.bind ServletRequestDataBinder addValidators.

Prototype

public void addValidators(Validator... validators) 

Source Link

Document

Add Validators to apply after each binding step.

Usage

From source file:net.maritimecloud.endorsement.controllers.EndorseController.java

@InitBinder("endorsement")
protected void initBinder(final ServletRequestDataBinder binder) {
    binder.addValidators(endorsementValidator);
}

From source file:net.maritimecloud.identityregistry.controllers.VesselController.java

@InitBinder("vessel")
protected void initBinder(final ServletRequestDataBinder binder) {
    binder.addValidators(vesselValidator);
}