Tag

JSR303

1 views collected around this technical thread.

Java Architect Essentials
Java Architect Essentials
Jan 3, 2023 · Backend Development

Using javax.validation Annotations for Parameter Validation in Spring Boot

This article explains how to replace verbose manual if‑else checks with concise javax.validation annotations in Spring Boot, covering built‑in constraints, dependency setup, custom validators, validation groups, and global exception handling to create a unified, maintainable validation workflow.

BackendHibernateValidatorJSR303
0 likes · 12 min read
Using javax.validation Annotations for Parameter Validation in Spring Boot
vivo Internet Technology
vivo Internet Technology
Feb 28, 2022 · Backend Development

Elegant Parameter Validation in Dubbo Services

The article shows how to integrate JSR‑303 bean validation into Dubbo services by adding the necessary Maven dependencies, annotating parameter classes, enabling validation on provider and consumer, customizing the validation filter to return a unified FacadeResult, disabling the default filter, and extending validation with custom annotations for clean, maintainable RPC parameter checks.

Custom FilterDubboFacadeResult
0 likes · 18 min read
Elegant Parameter Validation in Dubbo Services
Selected Java Interview Questions
Selected Java Interview Questions
Feb 17, 2021 · Backend Development

Handling Null Values in Java: Empty Collections, Optional, and Null‑Object Pattern

This article explains common null‑handling pitfalls in Java backend code, demonstrates why returning empty collections or Optional is safer than null, shows how to use JSR‑303/JSR‑305 annotations and the Null‑Object pattern, and provides practical guidelines for method signatures and bean getters.

BackendJSR303JSR305
0 likes · 14 min read
Handling Null Values in Java: Empty Collections, Optional, and Null‑Object Pattern
Selected Java Interview Questions
Selected Java Interview Questions
Dec 22, 2020 · Backend Development

Handling Null Values and Optional in Java Backend Development

This article discusses common null‑value pitfalls in Java services, compares returning null collections versus empty collections, introduces the Null‑Object pattern and JDK 8/Guava Optional, and provides practical guidelines using JSR‑303/JSR‑305 annotations to make APIs safer and more expressive.

BackendJSR303JSR305
0 likes · 15 min read
Handling Null Values and Optional in Java Backend Development