简体   繁体   中英

Implementation of LocalValidatorFactoryBean other than hibernate-validator?

Do you know an implementation of springframework's LocalValidatorFactoryBean other than hibernate-validator?

We don't want hibernate-validator because it fetches too many dependencies in a small spring-mvc 3 application that doesn't use hibernate.

I can't precisely answer you question with respect to other implementations of LocalValidatorFactoryBean , but what concerns the dependencies of Hibernate Validator, there are actually not that many.

The only strict dependency besides the JSR 303 API (validation-api-1.0.0.GA.jar) is slf4j-api-1.5.6.jar plus a binding for it (here you could use the NOP binding for instance if you don't want to pull in a logger).

All the other dependencies are optional and can be left out depending on your setup/requirements (eg JAXB is only required when working with XML descriptors and running on JDK 5).

正如Raghuram指出的那样,有一个Apache Bean验证 (以前称为agimatec)似乎比Hibernate的效率更高。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM