Tagged articles
15 articles
Page 1 of 1
Alibaba Cloud Developer
Alibaba Cloud Developer
Mar 21, 2025 · Backend Development

Mastering Parameter Validation in Spring Boot with JSR‑303 & Hibernate Validator

This guide explains how to use JSR‑303 and Hibernate Validator in Java Spring Boot to perform comprehensive parameter validation, covering basic annotations, global exception handling, group validation, nested object checks, fast‑fail configuration, and custom validation rules, with practical code examples and testing procedures.

Hibernate ValidatorJSR-303Java
0 likes · 15 min read
Mastering Parameter Validation in Spring Boot with JSR‑303 & Hibernate Validator
macrozheng
macrozheng
Oct 18, 2024 · Backend Development

Master Spring Boot Validation: 10 Essential Tips and Custom Techniques

This article presents ten practical techniques—including built‑in annotations, custom constraints, server‑side checks, internationalized messages, validation groups, cross‑field rules, exception handling, testing, and client‑side considerations—to help developers implement robust validation in Spring Boot applications.

Custom AnnotationsJSR-303Java
0 likes · 17 min read
Master Spring Boot Validation: 10 Essential Tips and Custom Techniques
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 8, 2023 · Backend Development

Mastering Spring Boot Parameter Validation with JSR‑303, Groups, and AOP

Learn how to implement comprehensive parameter validation in Spring Boot 2.6.12 using JSR‑303 Bean Validation, covering simple checks, validation groups, single‑parameter validation, nested objects, custom utilities, internationalization, and unified AOP‑based handling with practical code examples and configuration steps.

Bean ValidationJSR-303Parameter Validation
0 likes · 12 min read
Mastering Spring Boot Parameter Validation with JSR‑303, Groups, and AOP
DeWu Technology
DeWu Technology
Oct 18, 2023 · Backend Development

Understanding Bean Validation and Spring Validation in Java Applications

Bean Validation (JSR‑303/380) offers a standard, annotation‑driven API—implemented by Hibernate Validator—for declaring constraints such as @NotNull or @Email, while Spring integrates it via @Valid and @Validated (with group support and AOP‑based method validation), enabling automatic request‑body checks, custom constraints, and service‑layer validation, provided the proper annotations are applied.

Bean ValidationJSR-303spring
0 likes · 15 min read
Understanding Bean Validation and Spring Validation in Java Applications
macrozheng
macrozheng
May 29, 2023 · Backend Development

10 Essential Spring Boot Parameter Validation Techniques You Must Know

This guide explains ten practical ways to enforce robust parameter validation in Spring Boot applications, covering built‑in annotations, custom constraints, server‑side checks, meaningful error messages, internationalization, validation groups, cross‑field rules, exception handling, testing strategies, and client‑side considerations.

JSR-303JavaParameter Validation
0 likes · 17 min read
10 Essential Spring Boot Parameter Validation Techniques You Must Know
macrozheng
macrozheng
Nov 30, 2022 · Backend Development

Mastering Spring Boot Validation with Hibernate Validator: An End‑to‑End Guide

This article explains why back‑end parameter validation is essential, introduces the JSR‑303 Bean Validation specification and Hibernate Validator, demonstrates common constraint annotations, shows how to integrate validation in Spring Boot, create custom annotations, and resolve typical pitfalls.

Custom AnnotationHibernate ValidatorJSR-303
0 likes · 14 min read
Mastering Spring Boot Validation with Hibernate Validator: An End‑to‑End Guide
Code Ape Tech Column
Code Ape Tech Column
Nov 5, 2021 · Backend Development

Integrating JSR‑303 Bean Validation into Spring Boot: A Comprehensive Guide

This article explains how to seamlessly integrate JSR‑303 Bean Validation with Spring Boot, covering the underlying concepts, required dependencies, built‑in and Hibernate‑specific constraints, simple, group and nested validation techniques, result handling, the role of spring‑boot‑starter‑validation, and how to create custom validation annotations and validators.

BackendBean ValidationJSR-303
0 likes · 17 min read
Integrating JSR‑303 Bean Validation into Spring Boot: A Comprehensive Guide
Alibaba Cloud Developer
Alibaba Cloud Developer
May 19, 2021 · Backend Development

Mastering Elegant Parameter Validation with Hibernate Validator

This article examines the challenges of repetitive if‑else parameter checks, introduces Hibernate Validator as a JSR‑303 implementation, demonstrates how to build a reusable validation module, and shares best‑practice patterns for integrating elegant, decoupled validation into Java backend systems.

Backend DevelopmentHibernate ValidatorJSR-303
0 likes · 10 min read
Mastering Elegant Parameter Validation with Hibernate Validator
Code Ape Tech Column
Code Ape Tech Column
Oct 27, 2020 · Backend Development

Mastering JSR‑303 Validation in Spring Boot: From Basics to Custom Constraints

This article walks through the fundamentals of JSR‑303 Bean Validation in Spring Boot, explains how to add the starter dependency, lists built‑in constraint annotations, demonstrates simple, group and nested validation, shows how to capture validation errors, and guides you through creating custom constraint annotations and validators with full code examples.

Bean ValidationCustom ConstraintGroup Validation
0 likes · 18 min read
Mastering JSR‑303 Validation in Spring Boot: From Basics to Custom Constraints
Java Captain
Java Captain
Dec 25, 2019 · Backend Development

Handling Null Values and Optional in Java: Best Practices and Design Patterns

This article discusses common null‑value pitfalls in Java services, explains why returning null collections is dangerous, and presents robust solutions such as returning empty lists, using Optional, applying JSR‑303/JSR‑305 annotations, and employing the Null Object pattern to improve code safety and readability.

Design PatternsJSR-303JSR-305
0 likes · 13 min read
Handling Null Values and Optional in Java: Best Practices and Design Patterns
Java Backend Technology
Java Backend Technology
Dec 18, 2019 · Backend Development

Mastering Null Handling in Java: Optional, Null Object Pattern & JSR 303/305

This article examines common pitfalls of null values in Java backend code, explains why returning null collections or objects can cause NullPointerExceptions, and presents robust solutions such as returning empty collections, using Optional, applying JSR‑303 validation, JSR‑305 annotations, and the Null Object pattern to improve API safety and readability.

JSR-303JSR-305Java
0 likes · 13 min read
Mastering Null Handling in Java: Optional, Null Object Pattern & JSR 303/305
Programmer DD
Programmer DD
Oct 5, 2019 · Backend Development

Master Elegant Request Parameter Validation in Spring Boot with JSR‑303

This tutorial explains why server‑side request parameter validation is essential, introduces the JSR‑303 Bean Validation standard and its Hibernate Validator implementation, and provides step‑by‑step code examples, Swagger integration tips, and dependency guidance for building robust Spring Boot REST APIs.

Bean ValidationHibernate ValidatorJSR-303
0 likes · 11 min read
Master Elegant Request Parameter Validation in Spring Boot with JSR‑303
Programmer DD
Programmer DD
Aug 28, 2017 · Backend Development

Quickly Add Swagger2 API Docs to Spring Boot with the Swagger Starter

This article introduces the Spring Boot Swagger starter version 1.3.0.RELEASE, highlighting new host configuration and JSR‑303 annotation support, and provides step‑by‑step instructions, Maven dependency snippets, Java code, detailed property settings, grouping examples, and resource links for seamless API documentation integration.

API documentationBackend DevelopmentConfiguration
0 likes · 7 min read
Quickly Add Swagger2 API Docs to Spring Boot with the Swagger Starter