13.07.2015 Views

JSR 303 的参考实现使用指南 - JBoss

JSR 303 的参考实现使用指南 - JBoss

JSR 303 的参考实现使用指南 - JBoss

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

第 4XML configuration4.1. validation.xml我 们 可 以 使 用 validation.xml 来 对 Hibernate Validator 进 行 配 置 . ValidationFactory 在 初 始 化 的 时候 会 在 类 路 径 下 寻 找 此 文 件 , 如 果 找 到 的 话 , 就 会 应 用 其 中 定 义 的 配 置 信 息 . 例 4.1 “validationconfiguration-1.0.xsd”显 示 了 valiation.xml 的 xsd 模 型 .例 4.1. validation-configuration-1.0.xsd例 4.2 “validation.xml” 列 出 了 validation.xml 中 的 一 些 常 用 的 配 置 项 .例 4.2. validation.xmlorg.hibernate.validator.HibernateValidatororg.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolatororg.hibernate.validator.engine.resolver.DefaultTraversableResolverorg.hibernate.validator.engine.ConstraintValidatorFactoryImpl/constraints-car.xml39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!