Tag

ApplicationContext

0 views collected around this technical thread.

Sanyou's Java Diary
Sanyou's Java Diary
Apr 22, 2024 · Backend Development

Master Spring’s Core: Resource Management, Environment, Type Conversion, and More

Explore a comprehensive guide to Spring’s core mechanisms—including resource handling, environment configuration, type conversion, data binding, generic processing, internationalization, BeanFactory, ApplicationContext, and event publishing—complete with detailed explanations, code demos, diagrams, and practical insights for mastering backend development with Spring.

ApplicationContextData BindingEvent Publishing
0 likes · 40 min read
Master Spring’s Core: Resource Management, Environment, Type Conversion, and More
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 16, 2023 · Backend Development

How Spring Initializes Parent and Child Containers via web.xml

This article explains how Spring 5.3.23 uses web.xml to configure a ContextLoaderListener that creates and refreshes the parent WebApplicationContext, and how DispatcherServlet initializes the child container, detailing the configuration parameters, default locations, and the refresh process.

ApplicationContextContextLoaderListenerDispatcherServlet
0 likes · 12 min read
How Spring Initializes Parent and Child Containers via web.xml
Sanyou's Java Diary
Sanyou's Java Diary
Sep 11, 2023 · Backend Development

Unveiling Spring’s 12 Core Startup Steps: A Deep Dive

This article walks through the twelve essential steps Spring performs during application startup, explaining each method—from prepareRefresh to finishRefresh—including bean factory preparation, post‑processor registration, and the final context refresh, all illustrated with diagrams and code snippets.

ApplicationContextBeanFactoryJava
0 likes · 16 min read
Unveiling Spring’s 12 Core Startup Steps: A Deep Dive
政采云技术
政采云技术
Dec 21, 2021 · Backend Development

Understanding the Spring Boot Startup Process and Auto‑Configuration Mechanism

This article walks through the complete Spring Boot startup sequence, illustrating the entry point, the internal run method, environment preparation, context creation, bean factory processing, and final refresh steps, while highlighting the role of auto‑configuration and providing annotated code examples.

ApplicationContextAuto‑ConfigurationBackend
0 likes · 8 min read
Understanding the Spring Boot Startup Process and Auto‑Configuration Mechanism
Java Architect Essentials
Java Architect Essentials
Nov 3, 2021 · Backend Development

Three Ways to Access Spring Beans in Static Methods Using Spring Boot

This article explains three techniques for obtaining Spring beans inside static methods—using @PostConstruct initialization, a static ApplicationContext stored in the main class, and implementing ApplicationContextAware—complete with code examples and detailed guidelines for the @PostConstruct annotation.

ApplicationContextJavaPostConstruct
0 likes · 6 min read
Three Ways to Access Spring Beans in Static Methods Using Spring Boot
Top Architect
Top Architect
Oct 29, 2021 · Backend Development

Three Methods to Obtain Spring Beans in Static Context: @PostConstruct, ApplicationContext, and ApplicationContextAware

This article explains three practical ways to retrieve Spring beans from static methods—using @PostConstruct annotation, a static ApplicationContext defined in the main class, and a manually injected ApplicationContext via ApplicationContextAware—complete with code examples and usage notes.

ApplicationContextBean RetrievalJava
0 likes · 5 min read
Three Methods to Obtain Spring Beans in Static Context: @PostConstruct, ApplicationContext, and ApplicationContextAware
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 21, 2021 · Backend Development

When to Choose BeanFactory vs ApplicationContext in Spring 5?

This article explains the core differences between Spring's BeanFactory and ApplicationContext, why ApplicationContext is generally preferred, and how to manually register BeanPostProcessors when using a plain DefaultListableBeanFactory.

ApplicationContextBackend DevelopmentBeanFactory
0 likes · 6 min read
When to Choose BeanFactory vs ApplicationContext in Spring 5?
Selected Java Interview Questions
Selected Java Interview Questions
May 1, 2020 · Backend Development

Understanding the Bean Lifecycle in Spring ApplicationContext

This article explains the Spring bean lifecycle within an ApplicationContext, detailing container‑level, factory‑level, and bean‑level post‑processors, showing how to implement and register custom processors, and providing code examples and XML configuration to illustrate the execution order and practical usage.

ApplicationContextBackendBeanPostProcessor
0 likes · 9 min read
Understanding the Bean Lifecycle in Spring ApplicationContext
Architecture Digest
Architecture Digest
Nov 19, 2019 · Backend Development

Understanding the SpringApplication Startup Process in Spring Boot

This article explains how Spring Boot launches an application by creating an AnnotationConfigApplicationContext, registering annotation processors, loading the primary source class, and invoking ConfigurationClassPostProcessor during the refresh phase, with detailed code examples illustrating each step.

ApplicationContextBackendConfiguration
0 likes · 8 min read
Understanding the SpringApplication Startup Process in Spring Boot