Tagged articles
26 articles
Page 1 of 1
macrozheng
macrozheng
Dec 5, 2025 · Backend Development

Mastering @ConfigurationProperties and @PropertySources in Spring Boot

This article provides a comprehensive guide to using Spring Boot's @ConfigurationProperties and @PropertySources annotations, covering their purpose, usage steps, code examples, and the differences between them for effective configuration management in Java backend applications.

Backend DevelopmentConfiguration ManagementConfigurationProperties
0 likes · 11 min read
Mastering @ConfigurationProperties and @PropertySources in Spring Boot
Top Architect
Top Architect
Nov 27, 2025 · Backend Development

Master Spring Boot Config Management with Enums and @ConfigurationProperties

This guide shows how to improve Spring Boot configuration management by using Java enums together with @ConfigurationProperties, providing clear, type‑safe settings, reducing magic numbers, and demonstrating a complete example with Maven dependencies, YAML files, a configuration class, controller, and Thymeleaf view.

BackendConfiguration ManagementConfigurationProperties
0 likes · 13 min read
Master Spring Boot Config Management with Enums and @ConfigurationProperties
Architect's Guide
Architect's Guide
Nov 25, 2025 · Backend Development

Managing Spring Boot Configurations with Enums and @ConfigurationProperties

This guide explains how to improve Spring Boot configuration management by defining configuration values as Java enums, mapping them with @ConfigurationProperties, and displaying them via a Thymeleaf front‑end, including Maven dependencies, YAML settings, enum class, config class, controller, and HTML template examples.

Backend DevelopmentConfigurationPropertiesSpring Boot
0 likes · 11 min read
Managing Spring Boot Configurations with Enums and @ConfigurationProperties
Java Backend Technology
Java Backend Technology
Nov 4, 2025 · Backend Development

10 Essential Spring Boot Features Every Developer Should Master

This comprehensive guide explores the most powerful Spring Boot capabilities—including @Conditional, @ConfigurationProperties, Actuator, DevTools, Retry, Cache, testing strategies, custom starters, Admin, and CLI—providing code examples and deep analysis to help developers boost productivity, reliability, and maintainability of their applications.

ActuatorCacheConditional
0 likes · 20 min read
10 Essential Spring Boot Features Every Developer Should Master
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 7, 2025 · Backend Development

6 Practical Ways to Load External Configurations in Spring Boot 3

This article demonstrates six different techniques for loading external configuration data into Spring Boot 3 applications, covering command‑line arguments, spring.config.import, @PropertySource, EnvironmentPostProcessor, @TestPropertySource, and a custom PropertySourceLocator with complete code examples and expected outputs.

Backend DevelopmentConfigurationPropertiesEnvironmentPostProcessor
0 likes · 9 min read
6 Practical Ways to Load External Configurations in Spring Boot 3
Java Captain
Java Captain
Jul 4, 2025 · Backend Development

Master Spring Boot Configuration with Enums for Cleaner, Maintainable Code

This guide explains how to improve Spring Boot configuration management by mapping external properties to Java enums using @ConfigurationProperties, demonstrating a complete example with Maven dependencies, YAML settings, enum definitions, configuration classes, a controller, and a Thymeleaf view to achieve flexible and readable code.

ConfigurationPropertiesJavaSpring Boot
0 likes · 11 min read
Master Spring Boot Configuration with Enums for Cleaner, Maintainable Code
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 21, 2025 · Backend Development

Master Spring Boot 3 Config: @ConfigurationProperties, Constructor Binding & Default Values

This article introduces a comprehensive Spring Boot 3 case collection and provides a detailed guide on using @ConfigurationProperties, constructor binding, @DefaultValue, and record types for type‑safe configuration, including examples of nested properties, collections, and default values, while promising ongoing updates and free source code for subscribers.

ConfigurationPropertiesDefaultValueJava
0 likes · 9 min read
Master Spring Boot 3 Config: @ConfigurationProperties, Constructor Binding & Default Values
Java Tech Enthusiast
Java Tech Enthusiast
Feb 11, 2025 · Backend Development

Using Enums for Configuration Management in Spring Boot

The article shows how to replace hard‑coded strings in Spring Boot configuration files with type‑safe Java enums, using @ConfigurationProperties to bind YAML values to enum fields, thereby improving readability, maintainability, and eliminating magic numbers, illustrated through a user‑role example with controller and Thymeleaf view.

ConfigurationPropertiesJavaSpring Boot
0 likes · 12 min read
Using Enums for Configuration Management in Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 25, 2024 · Backend Development

Mastering Spring Boot Property Injection: @Value, @ConfigurationProperties, YAML & More

This guide walks through eight Spring Boot property injection techniques—including @Value placeholders, SpEL expressions, @ConfigurationProperties, custom @PropertySource, YAML factories, Environment access, custom annotations, programmatic loading, and command‑line arguments—showing code examples and expected outputs for each method.

@ValueConfigurationPropertiesEnvironment
0 likes · 9 min read
Mastering Spring Boot Property Injection: @Value, @ConfigurationProperties, YAML & More
Java High-Performance Architecture
Java High-Performance Architecture
Feb 25, 2024 · Backend Development

Mastering Spring’s @ConfigurationProperties and @PropertySources for Clean Config Management

This article explains how Spring's @ConfigurationProperties and @PropertySources annotations work, compares their purposes, and provides step‑by‑step examples for binding external configuration to Java beans and loading multiple property files in a Spring Boot application.

ConfigurationPropertiesJavaPropertySources
0 likes · 11 min read
Mastering Spring’s @ConfigurationProperties and @PropertySources for Clean Config Management
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 15, 2023 · Backend Development

How Spring Cloud Dynamically Refreshes @ConfigurationProperties Beans

This article explains how Spring Cloud discovers classes annotated with @ConfigurationProperties, wraps them into ConfigurationPropertiesBean objects, and dynamically rebinds them at runtime using RefreshScope, EnvironmentChangeEvent, and the RefreshEndpoint actuator, enhancing application flexibility and scalability.

@RefreshScopeConfigurationPropertiesDynamic Refresh
0 likes · 9 min read
How Spring Cloud Dynamically Refreshes @ConfigurationProperties Beans
Selected Java Interview Questions
Selected Java Interview Questions
Oct 20, 2023 · Backend Development

Using @ConfigurationProperties and @PropertySources in Spring Boot

This article explains the purpose and differences of Spring's @ConfigurationProperties and @PropertySources annotations, provides step‑by‑step guidance for creating POJOs, configuration classes, property files, and demonstrates how to bind and inject configuration values in a Spring Boot application with code examples.

Configuration ManagementConfigurationPropertiesJava
0 likes · 12 min read
Using @ConfigurationProperties and @PropertySources in Spring Boot
Su San Talks Tech
Su San Talks Tech
Aug 13, 2023 · Backend Development

Master Spring Boot Configuration: From Environment to @Value and Beyond

This article explains multiple ways to read configuration properties in Spring Boot—including Environment, @Value, @ConfigurationProperties, @PropertySources, and custom YAML loading—detailing their underlying mechanisms, common pitfalls, and code examples so developers can choose the most suitable approach for their projects.

@ValueConfigurationPropertiesEnvironment
0 likes · 17 min read
Master Spring Boot Configuration: From Environment to @Value and Beyond
Programmer DD
Programmer DD
Nov 16, 2022 · Backend Development

14 Practical Spring Boot Code Optimization Tips for Cleaner Backend Development

This article presents fourteen actionable Spring Boot optimization techniques—from using @ConfigurationProperties and @RequiredArgsConstructor to modularizing code, avoiding null returns, leveraging IDE suggestions, and applying design patterns—aimed at improving code readability, performance, and maintainability for Java backend developers.

Code OptimizationConfigurationPropertiesbest practices
0 likes · 7 min read
14 Practical Spring Boot Code Optimization Tips for Cleaner Backend Development
Top Architect
Top Architect
Sep 20, 2022 · Backend Development

Understanding Spring Boot Auto‑Configuration Mechanism

This article explains how Spring Boot's auto‑configuration works, detailing the role of @SpringBootApplication, @EnableAutoConfiguration, the spring.factories mechanism, conditional annotations, and how configuration properties are bound to beans such as ServerProperties, providing a clear understanding for developers and interview preparation.

Backend DevelopmentConfigurationPropertiesJava
0 likes · 9 min read
Understanding Spring Boot Auto‑Configuration Mechanism
Architect's Tech Stack
Architect's Tech Stack
Nov 8, 2021 · Backend Development

Understanding the Spring Boot Auto‑Configuration Mechanism

This article explains how Spring Boot’s auto‑configuration works, detailing the role of @SpringBootApplication, @EnableAutoConfiguration, the spring.factories file, conditional annotations, and how configuration properties are bound to beans such as ServerProperties to make settings like server.port effective at runtime.

Backend DevelopmentConfigurationPropertiesJava
0 likes · 7 min read
Understanding the Spring Boot Auto‑Configuration Mechanism
Selected Java Interview Questions
Selected Java Interview Questions
Oct 21, 2021 · Backend Development

Deep Dive into SpringBoot Auto‑Configuration and Startup Process

This article provides a comprehensive walkthrough of SpringBoot’s auto‑configuration mechanism, covering common annotations, configuration property binding, import strategies, conditional beans, the application startup flow, and the role of META‑INF/spring.factories in loading auto‑configuration classes.

ConfigurationPropertiesJavaSpringBoot
0 likes · 16 min read
Deep Dive into SpringBoot Auto‑Configuration and Startup Process
Top Architect
Top Architect
Aug 19, 2021 · Backend Development

Understanding Spring Boot Auto‑Configuration Mechanism

This article explains how Spring Boot's auto‑configuration works by loading configuration classes from spring.factories, using @EnableAutoConfiguration and conditional annotations to bind properties from application.properties or application.yml to beans such as ServerProperties, enabling rapid backend development without extensive manual setup.

Backend DevelopmentConfigurationPropertiesJava
0 likes · 8 min read
Understanding Spring Boot Auto‑Configuration Mechanism
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 26, 2021 · Backend Development

Master Spring Boot Startup Tasks: Runners, Config, and Command-Line Tricks

After launching a Spring Boot 2.3.9 application, you can execute custom tasks using ApplicationRunner or CommandLineRunner, access startup arguments, generate random configuration values, disable command-line properties, understand configuration file loading order, and correctly use @EnableConfigurationProperties for bean binding.

ApplicationRunnerBackend DevelopmentConfigurationProperties
0 likes · 6 min read
Master Spring Boot Startup Tasks: Runners, Config, and Command-Line Tricks
Programmer DD
Programmer DD
Nov 7, 2019 · Backend Development

Master Spring Boot Configuration Processor to Generate Accurate Metadata

This tutorial explains how to use Spring Boot's Configuration Processor to generate JSON metadata for configuration properties, covering dependency setup, Java bean definitions, property files, tests, and how the resulting metadata improves IDE auto‑completion and documentation.

Configuration ProcessorConfigurationPropertiesJava
0 likes · 10 min read
Master Spring Boot Configuration Processor to Generate Accurate Metadata
Programmer DD
Programmer DD
Oct 19, 2019 · Backend Development

What’s New in Spring Boot 2.2? Key Features and Improvements Explained

Spring Boot 2.2 follows the release of Spring Framework 5.2, bringing updated component versions, major performance gains, Java 13 support, immutable configuration properties, RSocket starter, health‑check grouping, and numerous other enhancements for Java backend developers.

ConfigurationPropertiesJavaSpring Boot
0 likes · 6 min read
What’s New in Spring Boot 2.2? Key Features and Improvements Explained