benjaminor-dev/spring-validation-plus — explained in plain English
Analysis updated 2026-05-18
Add password confirmation and cross-field validation rules to a Spring Boot form.
Check that a submitted email or username does not already exist in the database.
Return validation errors as a consistent, translated JSON structure to a frontend.
Replace scattered technical error messages with friendly, multilingual ones.
| benjaminor-dev/spring-validation-plus | akarshsatija/beast | alexeygrigorev/codeforces-solutions-java | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | Java | Java | Java |
| Last pushed | — | 2021-02-17 | 2020-10-03 |
| Maintenance | — | Dormant | Dormant |
| Setup difficulty | easy | hard | easy |
| Complexity | 2/5 | 4/5 | 1/5 |
| Audience | developer | data | developer |
Figures from each repo's GitHub metadata at analysis time.
Database rules like @Unique and @Exists require adding the JPA dependency separately.
Spring Validation Plus is a Java library that adds a large set of extra rules for checking whether user submitted data is valid, built on top of Jakarta Validation, which is the standard validation system already built into Spring Boot. The standard system only ships around 22 basic rules, like checking that a field is not null or that a number is within a range. This project adds more than 85 additional rules inspired by how the PHP framework Laravel handles validation, things that Jakarta Validation does not cover on its own. The added rules cover several gaps. There are rules that compare multiple fields against each other, for example requiring a password confirmation field to match the password, or making one field required only if another field is filled in. There are rules that check a database, such as confirming an email address is not already used by another account, though those specific rules require your project to already use JPA, a common way Java talks to databases. There are also format checks for things like email addresses, URLs, and JSON strings, plus rules for handling optional fields cleanly. Another focus of the project is making validation errors easier to work with. Instead of scattered, technical sounding messages, errors come back as a single organized JSON structure grouped by field name, and messages are already translated into Spanish, English, and Portuguese. Type mismatches, like sending text where a number was expected, are turned into plain error messages instead of low-level exceptions. To use it, a Spring Boot project just adds one dependency, the Validation Plus starter, which already bundles the underlying validation engine so nothing else needs to be installed for the core features. Database-related rules like checking for existing or unique values are the one exception, since those need the JPA dependency added separately. The library works with both Spring Boot 3 and Spring Boot 4, requires Java 17 or newer, and is released under the Apache 2.0 license. The full README is longer than what was shown.
A Java library that adds over 85 extra validation rules to Spring Boot, inspired by Laravel, for things like password confirmation and database uniqueness checks.
Mainly Java. The stack also includes Java, Spring Boot, Jakarta Validation.
Use freely for any purpose, including commercial use, as long as you keep the copyright and license notices.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.