Tagged articles
7 articles
Page 1 of 1
Java Architecture Diary
Java Architecture Diary
Nov 17, 2025 · Backend Development

Simplify Dynamic Bean Registration in Spring Boot 4 with the New BeanRegistrar API

This article explains how Spring Framework 7 introduces the BeanRegistrar interface to replace the cumbersome ImportBeanDefinitionRegistrar, demonstrating the new API with concise code examples, comparing old and new approaches, and providing a complete practical example for dynamically registering beans based on runtime configuration.

BeanRegistrarJavaSpring Boot 4
0 likes · 11 min read
Simplify Dynamic Bean Registration in Spring Boot 4 with the New BeanRegistrar API
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 26, 2025 · Backend Development

How to Dynamically Register Beans in Spring Boot 3 Using BeanDefinitionRegistryPostProcessor

This article demonstrates how to dynamically register Spring Boot 3 beans using BeanDefinitionRegistryPostProcessor and configuration properties, covering property setup, bean class definition, post‑processor implementation, registration in a configuration class, and a CommandLineRunner test that prints the created beans.

BeanDefinitionRegistryPostProcessorconfiguration-propertiesdynamic-bean-registration
0 likes · 7 min read
How to Dynamically Register Beans in Spring Boot 3 Using BeanDefinitionRegistryPostProcessor
macrozheng
macrozheng
Jan 24, 2025 · Backend Development

How to Hot‑Deploy Custom Java Interfaces with Spring Boot and Reflection

This guide demonstrates how to enable hot deployment of user‑provided Java interface implementations in a Spring Boot application, covering both annotation‑based and reflection‑based approaches, jar uploading, dynamic bean registration, class loading, and cleanup, with complete code examples.

Hot DeploymentReflectionSpring Boot
0 likes · 8 min read
How to Hot‑Deploy Custom Java Interfaces with Spring Boot and Reflection
Selected Java Interview Questions
Selected Java Interview Questions
Jun 20, 2022 · Backend Development

Hot Deployment of Custom Java Interface Implementations Using Reflection and Spring

This article demonstrates how to design a simple Calculator interface, provide two implementation strategies (annotation‑based Spring beans and reflection‑based classes), and dynamically load, register, and unload user‑supplied JAR files at runtime through hot‑deployment mechanisms in a Java backend system.

BackendHot DeploymentJava
0 likes · 8 min read
Hot Deployment of Custom Java Interface Implementations Using Reflection and Spring
Top Architect
Top Architect
Jun 17, 2022 · Backend Development

Hot Deployment of Java Interface Implementations Using Jar Packages with Spring and Reflection

This article demonstrates how to design a simple Calculator interface, provide two implementation strategies (Spring annotation and reflection), and achieve hot deployment by uploading JAR files, dynamically loading classes, registering or removing beans in the Spring container, and testing the runtime behavior.

Hot DeploymentJavaReflection
0 likes · 10 min read
Hot Deployment of Java Interface Implementations Using Jar Packages with Spring and Reflection