-
May 6th, 2012, 11:40 AM
#1
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.
-
May 6th, 2012, 12:20 PM
#2
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
-
Forum Rules