Tagged articles

Java Records

3 articles · Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 8, 2026 · Backend Development

Optimizing Spring Boot Configuration with @ConfigurationProperties and Java Records

This article demonstrates how to combine Spring Boot's @ConfigurationProperties with Java records to create concise, immutable, and type‑safe configuration classes, covering scanning setup, record definition, YAML binding, constructor injection, validation with @Validated, and best‑practice recommendations for managing configuration in Spring Boot 3.5.0.

Backend DevelopmentConfigurationPropertiesImmutable Configuration
0 likes · 6 min read
Optimizing Spring Boot Configuration with @ConfigurationProperties and Java Records
macrozheng
macrozheng
May 20, 2025 · Backend Development

Why Java Records Beat Lombok @Data and How to Simplify Your Code

This article examines the drawbacks of Lombok, demonstrates how replacing Lombok annotations with Java Records and MapStruct improves readability, type safety, and debugging, and shows the concrete benefits of reducing boilerplate and achieving compile‑time safety in Java backend projects.

Backend DevelopmentJava RecordsLombok
0 likes · 6 min read
Why Java Records Beat Lombok @Data and How to Simplify Your Code
Programmer DD
Programmer DD
May 17, 2025 · Backend Development

Why Java Records Beat Lombok @Data: A Practical Migration Guide

This article examines the drawbacks of Lombok—such as reduced readability, IDE instability, and debugging challenges—and demonstrates how replacing Lombok annotations with Java Records, explicit constructors, and MapStruct for mapping yields cleaner, type‑safe, and maintainable code while eliminating boilerplate.

Java RecordsLombokRefactoring
0 likes · 5 min read
Why Java Records Beat Lombok @Data: A Practical Migration Guide