Tag: Spring

26 articles

Spring AMQP Integration with RabbitMQ: XML Configuration

Complete Spring AMQP integration with RabbitMQ tutorial, XML configuration to declare queues/exchanges/bindings, RabbitTemplate message sending/receiving and common troub...

Spring AMQP RabbitMQ JavaConfig Annotation Configuration

Spring AMQP JavaConfig annotation configuration to integrate RabbitMQ, ConnectionFactory, RabbitTemplate, Queue Bean configuration and message sending/receiving examples.

EVCache Client Integration: Memcached Setup and Configuration

Java applications wanting to experience Netflix EVCache locally or in small teams, but server not open source, can only self-build based on Memcached.

AI Research #132: Java Ecosystem 2025 - Spring, Quarkus, Micronaut and AOT Trends

Spring Framework 6, Spring Boot 3.x, GraalVM Native Image, Quarkus, Micronaut, and AOT trends shaping the Java ecosystem in 2025.

Spring In-Depth: Declarative Transaction Support, XML and XML+Annotation Modes

In-depth guide to Spring declarative transaction support covering transaction configuration with XML mode and XML+annotation mode with practical examples.

Spring In-Depth: AOP Aspect Enhancement Core Concepts, Advice Types and XML + Annotation

In-depth introduction to Spring AOP aspect enhancement covering core concepts, advice types, XML+annotation approaches with code examples

Spring In-Depth: Declarative Transaction Support, Transaction Control and Isolation Levels

In-depth introduction to Spring declarative transaction support covering transaction control, concepts, four characteristics, and isolation levels with practical examples.

Spring In-Depth: AOP Aspect Enhancement Core Concepts, Terminology and Proxy Configuration

In-depth introduction to Spring AOP aspect enhancement covering core concepts, related terminology, and proxy configuration with practical examples.

Spring In-Depth: IoC Container Circular Dependency, Prototype Scope and Lazy ObjectFactory

In-depth analysis of Spring IoC container system covering circular dependency, prototype beans, prototype scope, and lazy ObjectFactory with solutions.

Spring In-Depth: IoC Container System BeanFactory Analysis and Lazy-Init

In-depth analysis of Spring IoC container system covering BeanFactory process analysis and Bean lazy loading mechanism with practical examples.

IoC Container Source Code Analysis: Bean Instantiation and Initialization Flow

In-depth analysis of Spring IoC container initialization flow through breakpoint debugging, detailed explanation of Bean creation timing and AbstractApplicationContext.

IoC Container System: Bean Lifecycle and PostProcessor Details

Detailed explanation of Spring IoC container architecture, complete Bean lifecycle, and execution timing of BeanPostProcessor and BeanFactoryPostProcessor.

FactoryBean and BeanFactory Details and BeanPostProcessor

In-depth explanation of the differences between FactoryBean and BeanFactory in Spring, lazy loading mechanism of beans, and usage of BeanPostProcessor and BeanFactoryPost...

IoC Basics: Pure Annotation Mode and SpringConfig Configuration

Detailed introduction to Spring pure annotation configuration including usage of @Configuration, @ComponentScan, @Bean, @PropertySource annotations and Web environment co...

IoC Basics: XML and Annotation Combined Configuration

Explaining Spring's XML and annotation combined configuration mode, including the correspondence between annotations and XML tags, and usage of dependency injection annot...

IoC Basics: Pure XML Startup and Bean, DI Injection Details

Detailed explanation of Spring IoC configuration in pure XML mode including three ways to create Beans, lifecycle, scope, and XML configuration for constructor injection...

IoC Basics: Summary of Ways to Start an IoC Container

"BeanFactory is the top-level interface of the Spring framework's IoC container.

Implementing Simple IoC-04: Manual AOP and Transaction Control

Manually implement AOP aspect-oriented programming on top of business logic, using JDK dynamic proxies and CGLIB to implement transaction manager for automatic commit and...

Implementing Simple IoC-03: Manually Implementing an IoC Container

Step-by-step guide to manually implement an IoC container using BeanFactory and XML configuration to manage Bean dependencies and complete core dependency injection imple...

Implementing Simple IoC-02: Implementing Business Without Spring

Manually implement business logic layering without using Spring, including DAO layer, Service layer, and Controller layer, demonstrating dependency management issues in t...

Implementing Simple IoC-01: Servlet Introduction and Basic Principles

Step-by-step guide to implementing a simple Spring IoC container, Part 1 covering Servlet basics, characteristics, working principles, and writing your first Servlet prog...

Spring Overview: History and Core Concepts IoC, AOP

Comprehensive introduction to Spring framework basics, evolution from EJB to Spring, detailed explanation of Spring's core concepts including IoC and AOP with practical i...

Spring Transaction Pitfalls Part 2: Common Issues and Solutions

Spring transactions are implemented through AOP dynamic proxies. JDK dynamic proxy requires the target method to be public.

Spring Transaction Pitfalls Part 1: Common Issues and Solutions

Spring transaction pitfalls commonly occur in scenarios like classes not managed by Spring, transaction manager not started, improper method modifiers (final, static...

Spring Transaction Pitfalls Part 3: Common Issues and Solutions

Spring transaction pitfalls include rollbackFor configuration errors, transaction annotation overrides, nested transaction issues and more.

Spring Transaction Pitfalls Part 4: Multi-Threading and Exception Handling

Spring transaction pitfalls include multi-threaded calls, exception catching without rollback, manual exception throwing errors.