1. 程式人生 > >spring factory-method

spring factory-method

<bean id="validator" factory-bean="jsr303Factory" factory-method="getValidator"/>

        <bean id="jsr303Factory" class="javax.validation.Validation"
          factory-method="buildDefaultValidatorFactory"/>