Results 1 to 2 of 2

Thread: Automatic JSR-303 validation

  1. #1

    Default Automatic JSR-303 validation

    Its not Spring MVC project.

    Can be ConfigurableApplicationContext configured to invoke JSR-303 validator on each bean created? My plan is just to tag bean with JSR 303 annotation without writing custom afterPropertiesSet method calling injected JSR validator.

  2. #2

    Default

    Just add this to XML configuration. It will be discovered automatically. id can be anything

    <bean id="jsr303validation"
    class="org.springframework.validation.beanvalidati on.BeanValidationPostProcessor">
    </bean>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •