Tagged articles

Spring

1809 articles · Page 17 of 19
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Mar 22, 2020 · Backend Development

Common Reasons Why Spring @Transactional May Not Work

This article explains several typical pitfalls that cause Spring's @Transactional annotation to be ineffective, such as unsupported database engines, unmanaged service beans, internal method calls, non‑public methods, default rollback rules, and missing transaction manager configuration, and provides practical solutions for each case.

AOPDatabaseJava
0 likes · 4 min read
Common Reasons Why Spring @Transactional May Not Work
Big Data Technology & Architecture
Big Data Technology & Architecture
Mar 19, 2020 · Backend Development

Design and Implementation of a Transactional Message Module for Distributed Systems Using Spring and RabbitMQ

This article details a lightweight, low‑intrusion transactional message solution for microservices, covering design principles, database schema, Spring‑based implementation with RabbitMQ integration, compensation mechanisms, scheduling, and testing, illustrating how to achieve reliable asynchronous messaging while maintaining eventual consistency.

CompensationRabbitMQSpring
0 likes · 18 min read
Design and Implementation of a Transactional Message Module for Distributed Systems Using Spring and RabbitMQ
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 19, 2020 · Backend Development

How Spring Implements 9 Core Design Patterns – From Simple Factory to Template Method

This article explains how Spring applies nine classic design patterns—including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—detailing their implementation approaches, underlying principles, and the benefits they bring to Spring's IoC container and AOP mechanisms.

Backend DevelopmentDependency InjectionFactory Method
0 likes · 18 min read
How Spring Implements 9 Core Design Patterns – From Simple Factory to Template Method
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 16, 2020 · Backend Development

Mastering Java Backend Interview Questions: Concurrency, JVM, Spring, and Distributed Systems

This article compiles typical Java backend interview questions and detailed answers covering self‑introduction, personal growth, concurrency primitives, JVM memory management, GC tuning, cache design, large‑scale data storage, Spring IoC, AOP, distributed session handling, and common design patterns.

Backend DevelopmentJVMSpring
0 likes · 18 min read
Mastering Java Backend Interview Questions: Concurrency, JVM, Spring, and Distributed Systems
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 9, 2020 · Backend Development

How Spring Enables Asynchronous Execution with @EnableAsync – Deep Dive

This article explains how Spring's @EnableAsync annotation activates asynchronous method execution, detailing the roles of AsyncConfigurationSelector, ProxyAsyncConfiguration, AbstractAsyncConfiguration, and AsyncAnnotationBeanPostProcessor, and showing the underlying code that creates proxies, advisors, and executors for async processing.

AOPBackend DevelopmentEnableAsync
0 likes · 18 min read
How Spring Enables Asynchronous Execution with @EnableAsync – Deep Dive
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 8, 2020 · Backend Development

How to Enable and Customize Asynchronous Execution in Spring

Learn how to enable Spring's @Async support, configure custom executors, use @Async with void and Future return types, and implement custom exception handling for uncaught async errors, providing a complete guide to asynchronous method execution in Spring applications.

ExceptionHandlingExecutorSpring
0 likes · 4 min read
How to Enable and Customize Asynchronous Execution in Spring
Java Captain
Java Captain
Mar 4, 2020 · Backend Development

Overview of Common Spring and JPA Annotations

This article provides a comprehensive overview of frequently used Spring Boot, Spring MVC, and JPA annotations, explaining their purposes, typical usage patterns, and includes example code snippets to illustrate how they are applied in Java backend development.

JavaSpringSpringBoot
0 likes · 11 min read
Overview of Common Spring and JPA Annotations
Java Backend Technology
Java Backend Technology
Mar 3, 2020 · Backend Development

Unlock Spring’s Power: 9 Essential Design Patterns for Backend Engineers

This article explains how Spring implements nine core design patterns—including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—detailing their implementation, underlying principles, and practical significance for Java backend development.

Dependency InjectionFactoryJava
0 likes · 16 min read
Unlock Spring’s Power: 9 Essential Design Patterns for Backend Engineers
Java Captain
Java Captain
Mar 1, 2020 · Backend Development

Summary of Design Patterns Used in the Spring Framework

This article explains how the Spring framework implements various classic design patterns—including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—detailing their implementation mechanisms, underlying principles, and practical significance within Spring's bean lifecycle and extension points.

AOPBeanFactoryDependency Injection
0 likes · 14 min read
Summary of Design Patterns Used in the Spring Framework
Java Captain
Java Captain
Feb 29, 2020 · Backend Development

Using Apache POI for Excel Import and Export in Java

This article demonstrates how to use Apache POI in a Maven‑based Java project to read and write both XLS and XLSX Excel files, covering library setup, core APIs, data type handling, and practical import/export implementations with Spring MVC and MyBatis.

Apache POIExcelImportExport
0 likes · 19 min read
Using Apache POI for Excel Import and Export in Java
FunTester
FunTester
Feb 11, 2020 · Backend Development

Converting Asynchronous Calls to Synchronous Execution with Spring @Async for Server‑Side Interface Performance Optimization

This article explains how to improve the performance of multi‑query server interfaces by converting asynchronous calls to synchronous execution using Spring's @Async annotation and CountDownLatch, outlining suitable scenarios, providing Java pseudocode, and sharing practical implementation tips.

CountDownLatchJavaSpring
0 likes · 7 min read
Converting Asynchronous Calls to Synchronous Execution with Spring @Async for Server‑Side Interface Performance Optimization
Java Captain
Java Captain
Jan 31, 2020 · Backend Development

Comprehensive Guide to Developing a Traditional Java Web Project

This article outlines the essential steps for creating a traditional Java web application, covering environment preparation, Maven skeleton creation, required dependencies for logging, databases, persistence, Spring integration, DAO and service layers, unit testing, and RESTful controller configuration.

JUnitJavaMaven
0 likes · 10 min read
Comprehensive Guide to Developing a Traditional Java Web Project
ITPUB
ITPUB
Jan 23, 2020 · Backend Development

Top 10 Must-Have Eclipse Plugins to Supercharge Java Development

This article presents a curated list of the ten most essential Eclipse plugins for Java developers, explaining how each tool—ranging from Git integration and Spring support to Maven, SVN, code coverage, and live reload—boosts productivity and streamlines common development workflows.

EclipseIDE pluginsJava
0 likes · 9 min read
Top 10 Must-Have Eclipse Plugins to Supercharge Java Development
Architecture Digest
Architecture Digest
Jan 21, 2020 · Backend Development

Implementing Idempotent Requests with Local Locks, AOP, and Redis in Java

This article explains the concept of idempotency in web services, analyzes common causes of duplicate submissions, and presents multiple backend solutions—including frontend button disabling, PRG pattern, session flags, local locks using ConcurrentHashMap, AOP interceptors, and distributed Redis locks—accompanied by complete Java code examples.

Springidempotency
0 likes · 13 min read
Implementing Idempotent Requests with Local Locks, AOP, and Redis in Java
Architect's Tech Stack
Architect's Tech Stack
Jan 12, 2020 · Backend Development

Comprehensive Guide to Spring‑Kafka Integration and Advanced Features

This article provides a systematic tutorial on using Spring‑Kafka, covering basic setup, embedded Kafka for testing, topic creation methods, message sending with KafkaTemplate, transactional messaging, request‑reply patterns, advanced @KafkaListener configurations, manual acknowledgment, listener lifecycle control, SendTo forwarding, and retry with dead‑letter queues, all illustrated with complete code examples.

@TransactionalEmbeddedKafkaKafka
0 likes · 19 min read
Comprehensive Guide to Spring‑Kafka Integration and Advanced Features
Java Backend Technology
Java Backend Technology
Jan 5, 2020 · Backend Development

Which Java Framework Fits Your Project? A 2020 Top‑10 Guide

This article surveys Java’s evolution and market dominance, then evaluates the ten leading Java frameworks—Spring, Hibernate, Struts, Play, GWT, Grails, Blade, JSF, and Vaadin—highlighting their key features, use cases, and why choosing the right one is crucial for successful web development.

HibernateJavaSpring
0 likes · 9 min read
Which Java Framework Fits Your Project? A 2020 Top‑10 Guide
21CTO
21CTO
Dec 30, 2019 · Backend Development

Discover the 9 Best Java Frameworks of 2020 for High‑Performance Web Development

This article reviews the nine most popular Java frameworks in 2020—Spring, Hibernate, Struts, Play, Google Web Toolkit, Grails, Blade, JavaServer Faces, and Vaadin—detailing their features, industry adoption, and why they remain top choices for building scalable, high‑performance enterprise and web applications.

JavaSpringframeworks
0 likes · 9 min read
Discover the 9 Best Java Frameworks of 2020 for High‑Performance Web Development
Java Captain
Java Captain
Dec 29, 2019 · Backend Development

Comprehensive Overview of the Spring Framework and Its Ecosystem

This article provides a comprehensive introduction to the Spring ecosystem, covering its core concepts such as IoC and AOP, detailing each of the seven framework modules, and explaining related projects like Spring MVC, Spring Security, Spring Data, Spring Boot, and Spring Cloud for modern Java backend development.

AOPBackend DevelopmentDependency Injection
0 likes · 18 min read
Comprehensive Overview of the Spring Framework and Its Ecosystem
Java Captain
Java Captain
Dec 17, 2019 · Backend Development

Top 10 Most Popular Java Open‑Source Projects on GitHub in November

This article lists and briefly describes the ten most starred Java open‑source projects on GitHub for November, covering tools such as NLP libraries, learning guides, big‑data frameworks, rapid‑development platforms, algorithm collections, job schedulers, code‑style checkers, traffic‑control systems, the Spring framework, and service‑discovery solutions.

FlinkGitHubJava
0 likes · 5 min read
Top 10 Most Popular Java Open‑Source Projects on GitHub in November
Programmer DD
Programmer DD
Dec 6, 2019 · Backend Development

Mastering Cross-Origin Requests in Spring: JSONP and CORS Solutions

This article explains the concept of cross-origin, why it occurs in modern web architectures, and provides practical Spring‑based solutions using JSONP and CORS together with jQuery AJAX examples, complete with configuration snippets and code samples.

CORSCross-OriginJSONP
0 likes · 6 min read
Mastering Cross-Origin Requests in Spring: JSONP and CORS Solutions
FunTester
FunTester
Dec 5, 2019 · Backend Development

Using WireMock for Integration Testing of Spring RestTemplate Services

This article explains how to write integration tests for Spring services that call external APIs by using WireMock to mock HTTP responses, handle dynamic ports, simulate error and timeout scenarios, and adjust exception handling in RestTemplate calls.

JavaSpringWiremock
0 likes · 10 min read
Using WireMock for Integration Testing of Spring RestTemplate Services
Java Captain
Java Captain
Nov 29, 2019 · Backend Development

Designing Unified API Response Wrappers for Java Backend Services

This article explains how to design a standardized JSON response format, define status codes and messages, and implement a global @ResponseResult annotation with interceptors and ResponseBodyAdvice in Java to simplify controller return values and improve error handling.

APIJavaSpring
0 likes · 7 min read
Designing Unified API Response Wrappers for Java Backend Services
Programmer DD
Programmer DD
Nov 22, 2019 · Backend Development

Mastering Spring: A Comprehensive Guide to Java’s Leading Backend Framework

An in‑depth overview of the Spring ecosystem explains its core container, modules such as AOP, MVC, Data, Security, Boot and Cloud, detailing how IoC and dependency injection simplify Java enterprise development, and guides readers through configuration, architecture, and the advantages of using Spring for modern backend applications.

AOPBackend DevelopmentDependency Injection
0 likes · 19 min read
Mastering Spring: A Comprehensive Guide to Java’s Leading Backend Framework
Architect's Tech Stack
Architect's Tech Stack
Nov 21, 2019 · Backend Development

Comprehensive Guide to Spring‑Kafka: Integration, Configuration, and Advanced Features

This article provides a thorough tutorial on using Spring‑Kafka, covering basic Maven setup, producer and consumer code, embedded Kafka for testing, programmatic topic creation, synchronous and asynchronous message sending, transaction handling, request‑reply patterns, advanced @KafkaListener options, manual acknowledgments, lifecycle control, message forwarding with @SendTo, and retry with dead‑letter queues.

@TransactionalKafkaSpring
0 likes · 16 min read
Comprehensive Guide to Spring‑Kafka: Integration, Configuration, and Advanced Features
Programmer DD
Programmer DD
Nov 21, 2019 · Backend Development

Mastering High‑Performance Excel Export in Java: A Complete Guide

This article explains how to build a reusable Java utility for exporting massive Excel reports, covering customizable headers, field formatting, multithreaded data retrieval, asynchronous processing, and provides full source code with detailed analysis and usage instructions.

ExcelExportJava
0 likes · 17 min read
Mastering High‑Performance Excel Export in Java: A Complete Guide
Architects Research Society
Architects Research Society
Nov 16, 2019 · Backend Development

Practical Guide to Domain‑Driven Design: Modeling, Architecture, and Implementation

This article presents a comprehensive, practice‑oriented overview of Domain‑Driven Design, covering its conceptual foundations, project‑level management, architectural layering, design patterns, implementation techniques with Java/Spring, testing, continuous integration, and deployment strategies for enterprise applications.

Continuous IntegrationDomain-Driven DesignJava
0 likes · 39 min read
Practical Guide to Domain‑Driven Design: Modeling, Architecture, and Implementation
21CTO
21CTO
Nov 7, 2019 · Backend Development

Key Takeaways from Meituan’s Java Interview: Backend Questions & Learning Roadmap

This article compiles detailed notes from three rounds of Meituan’s Java interviews, covering SOA, micro‑services, load balancing, concurrency, JVM internals, Spring, database optimization, and algorithm challenges, while also outlining a learning roadmap for seasoned Java developers.

JavaSpringinterview
0 likes · 8 min read
Key Takeaways from Meituan’s Java Interview: Backend Questions & Learning Roadmap
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 30, 2019 · Backend Development

Eliminating Complex if‑else Logic with Strategy and Factory Patterns in a Spring‑Based Java Application

This article explains how excessive if‑else statements in business code hurt readability and maintainability, and demonstrates how to replace them with the Strategy and Factory design patterns integrated with Spring, using a food‑delivery discount example and complete Java code snippets.

Design PatternsFactory PatternJava
0 likes · 12 min read
Eliminating Complex if‑else Logic with Strategy and Factory Patterns in a Spring‑Based Java Application
macrozheng
macrozheng
Oct 29, 2019 · Backend Development

Eliminate Complex if‑else with Strategy & Factory Patterns in Spring

This article explains how to replace tangled if‑else logic in business code with the Strategy and Factory design patterns, integrates them into a Spring application, and demonstrates the resulting improvements in readability, maintainability, and extensibility for discount calculations.

Factory PatternJavaSpring
0 likes · 13 min read
Eliminate Complex if‑else with Strategy & Factory Patterns in Spring
Programmer DD
Programmer DD
Oct 11, 2019 · Backend Development

Mastering Graceful Shutdown in Dubbo: From 2.5.x to 2.7.x

This article explores Dubbo's graceful shutdown mechanisms across versions 2.5.x, 2.6.x, and 2.7.x, detailing the underlying shutdown hooks, registry and protocol cleanup, Spring integration challenges, and best‑practice configurations to ensure in‑flight requests complete without service disruption.

DubboGraceful ShutdownJava
0 likes · 19 min read
Mastering Graceful Shutdown in Dubbo: From 2.5.x to 2.7.x
Selected Java Interview Questions
Selected Java Interview Questions
Sep 29, 2019 · Backend Development

Overview of Spring, Spring MVC, Spring Boot, and Spring Cloud

Spring, Spring MVC, Spring Boot, and Spring Cloud are Java frameworks that respectively provide core IoC/AOP functionality, web MVC capabilities, convention‑over‑configuration rapid development, and comprehensive microservice governance, together forming a layered ecosystem for building clean, manageable, and scalable backend applications.

JavaSpringSpring Boot
0 likes · 4 min read
Overview of Spring, Spring MVC, Spring Boot, and Spring Cloud
Java Backend Technology
Java Backend Technology
Sep 25, 2019 · Backend Development

Avoid These 10 Common Mistakes in Java Backend Development

This article outlines ten frequent errors that Java backend developers make—from over‑focusing on low‑level details and leaking internal structures to neglecting proper testing—and offers practical guidelines and examples to write cleaner, more maintainable Spring‑based services.

JavaSpringbackend
0 likes · 14 min read
Avoid These 10 Common Mistakes in Java Backend Development
Java Backend Technology
Java Backend Technology
Sep 9, 2019 · Backend Development

Mastering TCC Distributed Transactions: Key Design Principles and Pitfalls

This article explores the complexities of building a generic TCC distributed transaction framework, emphasizing the need for RM-local transaction integration, Spring TransactionManager takeover, fault‑recovery mechanisms, idempotency guarantees, and proper handling of Try/Confirm/Cancel phases to ensure global consistency.

SpringTCCTransaction Management
0 likes · 18 min read
Mastering TCC Distributed Transactions: Key Design Principles and Pitfalls
Java Captain
Java Captain
Aug 24, 2019 · Backend Development

Comprehensive Guide to Spring MVC, Spring Bean, and Spring Boot Annotations

This article provides a detailed overview of the most commonly used Spring MVC request‑mapping annotations, Spring Bean stereotypes, dependency‑injection and scope annotations, container configuration annotations such as @Autowired and @Primary, and essential Spring Boot annotations, illustrating each with clear code examples and diagrams.

JavaSpringSpring Boot
0 likes · 18 min read
Comprehensive Guide to Spring MVC, Spring Bean, and Spring Boot Annotations
macrozheng
macrozheng
Aug 23, 2019 · Backend Development

Why Your Java Controllers Misuse Service Layers—and How to Fix It

This article examines common misuse of base Controller and Service classes in Java Spring projects, explains why they violate the Liskov Substitution Principle, and provides practical steps to split, refactor, and properly structure code across the three‑tier architecture.

JavaSpringarchitecture
0 likes · 22 min read
Why Your Java Controllers Misuse Service Layers—and How to Fix It
Java Backend Technology
Java Backend Technology
Aug 18, 2019 · Backend Development

Mastering Spring Annotations: From @Controller to @CacheEvict

This article provides a comprehensive guide to essential Spring annotations—including @Controller, @RestController, @Service, @Autowired, @RequestMapping, @ModelAttribute, @Cacheable, @CacheEvict, @Resource, @PostConstruct, @PreDestroy, @Repository, @Component, @Scope, @SessionAttributes, @Required and @Qualifier—explaining their purposes, usage patterns, and practical examples with accompanying diagrams.

Dependency InjectionJavaSpring
0 likes · 9 min read
Mastering Spring Annotations: From @Controller to @CacheEvict
Qunar Tech Salon
Qunar Tech Salon
Aug 12, 2019 · Backend Development

QMQ: Design, Usage, and Implementation of Qunar's Distributed Message Queue

This article introduces QMQ, Qunar's internal distributed message queue, covering its background, design motivations, core concepts, code examples for producing and consuming both real‑time and delayed messages, transactional messaging support, and the overall architecture of its metaserver, broker, and delay components.

JavaMessage QueueQMQ
0 likes · 18 min read
QMQ: Design, Usage, and Implementation of Qunar's Distributed Message Queue
Java Captain
Java Captain
Aug 11, 2019 · Backend Development

Top Java GitHub Projects in July

This article presents a curated list of the most popular Java open‑source projects on GitHub for July, highlighting eleven repositories—most of them Spring‑based—along with their star counts, brief descriptions, and links for developers seeking valuable resources.

GitHubJavaOpen Source
0 likes · 5 min read
Top Java GitHub Projects in July
Java Backend Technology
Java Backend Technology
Aug 11, 2019 · Backend Development

Why Your Java Controllers and Services Are Misdesigned—and How to Fix Them

This article examines common misuse of base Controller and Service classes in Java micro‑service projects, critiques embedding business logic in Controllers, exposing persistence models to APIs, and offers concrete refactoring steps, project structuring patterns, and best‑practice guidelines to restore a clean three‑layer architecture.

JavaSpringbackend
0 likes · 22 min read
Why Your Java Controllers and Services Are Misdesigned—and How to Fix Them
Java Backend Technology
Java Backend Technology
Aug 9, 2019 · Backend Development

10 Common Mistakes in Java Backend Development and How to Avoid Them

This article outlines ten frequent errors that Java backend developers make—from over‑focusing on low‑level details and leaking internal structures to neglecting separation of concerns, proper exception handling, multithreading, validation, XML configuration, profile management, dependency injection, and testing—offering practical guidance to prevent each pitfall.

Best PracticesJavaSoftware Architecture
0 likes · 14 min read
10 Common Mistakes in Java Backend Development and How to Avoid Them
Programmer DD
Programmer DD
Jul 31, 2019 · Backend Development

Blocking vs Non‑Blocking in Spring: RestTemplate vs WebClient Explained

This article compares Spring's traditional RestTemplate blocking client with the newer reactive WebClient non‑blocking client, explaining their underlying mechanisms, performance differences under concurrency, and provides complete code examples for both approaches, helping developers choose the appropriate tool for efficient HTTP calls.

HTTPJavaReactive
0 likes · 8 min read
Blocking vs Non‑Blocking in Spring: RestTemplate vs WebClient Explained
Java Captain
Java Captain
Jul 26, 2019 · Fundamentals

Java Fundamentals: Spring Lifecycle, TCP Handshake, Thread Pool, JVM Memory, JMM, Spring MVC, JDBC, Spring Cloud, and Dubbo Overview

This article provides a comprehensive overview of core Java concepts and related technologies, covering Spring's lifecycle, TCP three-way handshake and four-way termination, thread pool execution flow, JVM memory structure and Java Memory Model, as well as Spring MVC, JDBC, Spring Cloud components, and Dubbo service framework.

JVMJavaSpring
0 likes · 11 min read
Java Fundamentals: Spring Lifecycle, TCP Handshake, Thread Pool, JVM Memory, JMM, Spring MVC, JDBC, Spring Cloud, and Dubbo Overview
Programmer DD
Programmer DD
Jul 24, 2019 · Backend Development

Unlock the Power of Spring: 30 Core Concepts Every Java Developer Must Master

This comprehensive guide explores the fundamentals of the Spring framework—including its core modules, dependency injection, IoC, bean scopes, configuration styles, annotation-driven setup, event handling, and common design patterns—providing Java developers with practical examples and code snippets to master Spring's capabilities.

Bean LifecycleDependency InjectionDesign Patterns
0 likes · 25 min read
Unlock the Power of Spring: 30 Core Concepts Every Java Developer Must Master
Programmer DD
Programmer DD
Jul 21, 2019 · Backend Development

Understanding Spring, Spring MVC, and Spring Boot: Core Problems Solved and Best Use Cases

This article provides a comprehensive overview of the Spring framework, Spring MVC, and Spring Boot, explaining how dependency injection reduces boilerplate and enables loose coupling, illustrating code examples with and without DI, and describing Spring Boot’s auto‑configuration, starter projects and typical starter options for building modern Java backend applications.

Backend DevelopmentDependency InjectionJava
0 likes · 12 min read
Understanding Spring, Spring MVC, and Spring Boot: Core Problems Solved and Best Use Cases
Programmer DD
Programmer DD
Jul 20, 2019 · Backend Development

Unlocking Spring Bean Lifecycle: Mastering Aware Interfaces

This article completes the Spring Bean lifecycle overview by illuminating the remaining phases, explains how various XxxxAware interfaces are invoked during bean initialization, demonstrates common pitfalls with constructor injection, and provides code examples for implementing and using Aware interfaces such as BeanNameAware and BeanFactoryAware.

Aware InterfaceBackend DevelopmentBean Lifecycle
0 likes · 7 min read
Unlocking Spring Bean Lifecycle: Mastering Aware Interfaces
Programmer DD
Programmer DD
Jul 16, 2019 · Information Security

How to Prevent XSS and SQL Injection in Spring: A Practical Guide

This article explains the dangers of XSS and SQL injection attacks, demonstrates realistic attack scenarios, and provides a comprehensive backend solution using Spring AOP, HttpMessageConverter, custom Servlet Filters, request wrappers, and ESAPI to sanitize inputs and protect web applications.

ESAPISQL InjectionSpring
0 likes · 17 min read
How to Prevent XSS and SQL Injection in Spring: A Practical Guide
Java Captain
Java Captain
Jul 14, 2019 · Backend Development

Backend Architecture, Distributed Locks, and Session Management in Java

This article explains a Java backend architecture with front‑end/back‑end separation, deployment diagrams, the concepts of thread, process and distributed locks, implementations using database optimistic locking, Redis and Zookeeper, session handling in distributed systems, and various related code examples and best‑practice notes.

Backend DevelopmentDistributed LockJava
0 likes · 12 min read
Backend Architecture, Distributed Locks, and Session Management in Java
Programmer DD
Programmer DD
Jul 11, 2019 · Backend Development

Escaping Callback Hell: From Blocking Calls to Reactive Streams in Kotlin

This article explains the code types involved in synchronous remote calls, demonstrates how blocking IO leads to callback hell, and shows how to simplify the programming model using Java CompletableFuture, AsyncHttpClient, and Project Reactor’s reactive streams to efficiently retrieve city data.

AsyncHttpClientCompletableFutureKotlin
0 likes · 9 min read
Escaping Callback Hell: From Blocking Calls to Reactive Streams in Kotlin
Java Captain
Java Captain
Jul 8, 2019 · Backend Development

Understanding Spring Bean Definition Registration Mechanisms

This article explains how Spring registers bean definitions through various mechanisms such as BeanDefinitionRegistryPostProcessor, BeanFactoryPostProcessor, annotations, XML, @Import, ImportSelector and ImportBeanDefinitionRegistrar, using analogies and code examples to illustrate the process.

BeanDefinitionDependencyInjectionJava
0 likes · 13 min read
Understanding Spring Bean Definition Registration Mechanisms
Java Captain
Java Captain
Jul 5, 2019 · Backend Development

Understanding Spring BeanDefinition: Core Concepts, Interfaces, and Practical Examples

This article explains the fundamental role of Spring's BeanDefinition as the core data structure that records all bean metadata, compares it to real‑world analogies, lists the key BeanDefinition interface methods, demonstrates registration via annotations and @Bean methods, and shows how to inspect bean definitions at runtime.

BeanDefinitionDependencyInjectionJava
0 likes · 11 min read
Understanding Spring BeanDefinition: Core Concepts, Interfaces, and Practical Examples
Programmer DD
Programmer DD
Jul 2, 2019 · Backend Development

BeanFactory vs ApplicationContext in Spring: When to Use Which?

This article compares Spring's BeanFactory and ApplicationContext, explaining their roles in retrieving beans, detailing lazy versus eager loading, providing Java and XML code examples, and offering guidance on when to choose each interface for efficient backend development.

ApplicationContextBackend DevelopmentBeanFactory
0 likes · 7 min read
BeanFactory vs ApplicationContext in Spring: When to Use Which?
macrozheng
macrozheng
Jun 27, 2019 · Backend Development

How to Implement Unified Logging with AOP in a Spring MVC Project

This tutorial explains the fundamentals of Aspect Oriented Programming (AOP) and demonstrates how to create a logging aspect in a Spring MVC application, covering AOP terminology, Spring annotations, pointcut expressions, a WebLog DTO, the WebLogAspect implementation, and how to test the logging output via Swagger UI.

AOPJavaLogging
0 likes · 10 min read
How to Implement Unified Logging with AOP in a Spring MVC Project
Java Captain
Java Captain
Jun 18, 2019 · Backend Development

Top Java Open‑Source Projects on GitHub (May)

This article presents a curated list of the most popular Java open‑source projects on GitHub for May, highlighting each repository's purpose, star count, and key features ranging from algorithm visualizations and interview prep notes to full‑stack e‑commerce platforms and core Spring frameworks.

GitHubJavaOpen Source
0 likes · 6 min read
Top Java Open‑Source Projects on GitHub (May)
Java Captain
Java Captain
May 29, 2019 · Backend Development

Common Design Patterns Used in the Spring Framework

This article reviews the most frequently applied design patterns in Spring—including IoC/DI, Factory, Singleton, Proxy (AOP), Template Method, Observer, Adapter, and Decorator—explaining their purpose, how Spring implements them, and providing concise code examples for each.

AOPDependency InjectionDesign Patterns
0 likes · 17 min read
Common Design Patterns Used in the Spring Framework
Programmer DD
Programmer DD
May 28, 2019 · Backend Development

Mastering the Strategy Pattern in Spring: Real-World Java Examples

This article explains how to apply the Strategy pattern within a Spring project, covering background, learning objectives, step‑by‑step code examples for query services A, B, and C, the three‑part invocation process, and both list‑based and map‑based configurations.

Backend DevelopmentDesign PatternsJava
0 likes · 3 min read
Mastering the Strategy Pattern in Spring: Real-World Java Examples
Youzan Coder
Youzan Coder
May 17, 2019 · Backend Development

How Youzan’s Unit Test Architecture Solves Common Testing Pain Points

This article explains Youzan’s layered unit‑testing framework for microservice applications, outlines typical pain points such as massive test‑case rewrites, unstable test data, and missing result verification, and demonstrates how tools like DbUnit, H2, springockito, spring‑test and PowerMock are combined to provide data preparation, mock injection, automatic cleanup, and declarative result checks.

DbUnitJavaMockito
0 likes · 13 min read
How Youzan’s Unit Test Architecture Solves Common Testing Pain Points
Java Captain
Java Captain
Apr 6, 2019 · Backend Development

Understanding Spring Transaction Management and AOP Mechanism

This article explains how Spring enables transaction management through @EnableTransactionManagement, details the internal configuration selectors, bean registrations, AOP pointcuts, and the TransactionInterceptor implementation, illustrating the flow of transaction attribute detection, method interception, and exception‑based commit or rollback.

AOPBackend DevelopmentDeclarative Transactions
0 likes · 9 min read
Understanding Spring Transaction Management and AOP Mechanism
Programmer DD
Programmer DD
Apr 2, 2019 · Backend Development

From Freshman to Senior Engineer: A Developer’s Journey Through Java, Spring, and Big Data

This article chronicles a Chinese computer science graduate’s step‑by‑step evolution from learning basic C and Java in university to building campus apps, winning software contests, mastering Spring, Hadoop, Elasticsearch, and Neo4j, and ultimately landing offers from top tech firms, illustrating the challenges and perseverance required for a successful software engineering career.

Big DataCareerJava
0 likes · 13 min read
From Freshman to Senior Engineer: A Developer’s Journey Through Java, Spring, and Big Data
360 Tech Engineering
360 Tech Engineering
Mar 28, 2019 · Backend Development

Implementing Java Scheduled Tasks with Spring and Cron Expressions

This article explains how to implement scheduled tasks in Java, compares built‑in JDK timers, Quartz, and Spring's task scheduler, and provides detailed steps for using Spring XML configuration, annotations, and dynamic code addition together with a guide to writing cron expressions.

JavaSpringbackend
0 likes · 4 min read
Implementing Java Scheduled Tasks with Spring and Cron Expressions
JD Tech
JD Tech
Mar 22, 2019 · Backend Development

EasyRPC Framework Overview: Architecture, Server Publishing, and Client Invocation

This article introduces the EasyRPC framework, explaining its RPC fundamentals, the use of Netty for communication, Spring for configuration, dynamic proxy for transparent calls, Protostuff for message serialization, and details both server-side service publishing and client-side invocation with reconnection handling.

NettyProtostuffRPC
0 likes · 3 min read
EasyRPC Framework Overview: Architecture, Server Publishing, and Client Invocation
Java Architecture Diary
Java Architecture Diary
Mar 22, 2019 · Backend Development

Boost Java Performance with Cglib BeanCopier: Fast Bean Copy Techniques

This article introduces the high‑performance Cglib BeanCopier used in the Mica microservice framework, compares its speed with other bean‑copy tools, demonstrates usage with Spring and Lombok, explains the underlying ASM bytecode generation, and discusses current limitations such as lack of chainable beans and primitive‑wrapper handling.

BeanCopierJavaPerformance
0 likes · 7 min read
Boost Java Performance with Cglib BeanCopier: Fast Bean Copy Techniques
Java Captain
Java Captain
Mar 14, 2019 · Backend Development

Why Combining synchronized with @Transactional Causes Thread‑Safety Issues in Spring and How to Resolve Them

The article explains why using the synchronized keyword together with Spring's @Transactional annotation can lead to lost updates when many threads increment a database field, analyzes the underlying transaction‑proxy interaction, and presents a refactored solution that moves the lock to a separate service to ensure correct results.

ConcurrencyJavaSpring
0 likes · 7 min read
Why Combining synchronized with @Transactional Causes Thread‑Safety Issues in Spring and How to Resolve Them
Java Captain
Java Captain
Mar 11, 2019 · Backend Development

Comprehensive Java Interview Question List (208 Questions)

This article presents a curated collection of over 200 Java interview questions covering fundamentals, collections, concurrency, reflection, web technologies, Spring ecosystem, databases, messaging, and JVM internals, aimed at developers preparing for junior to senior-level interviews and seeking to identify and fill knowledge gaps.

JVMJavaSpring
0 likes · 12 min read
Comprehensive Java Interview Question List (208 Questions)
Java Captain
Java Captain
Mar 6, 2019 · Backend Development

Understanding Spring Transaction Proxies: JDK Dynamic Proxy and CGLIB

This article explains how Spring implements declarative transaction management using proxies, compares JDK dynamic proxies and CGLIB, demonstrates their behavior with code examples, and clarifies which method modifiers support transactional annotations in Spring applications.

Backend DevelopmentCGLIBJDK Dynamic Proxy
0 likes · 13 min read
Understanding Spring Transaction Proxies: JDK Dynamic Proxy and CGLIB
Java Captain
Java Captain
Feb 26, 2019 · Backend Development

How to Write Better Java Code: Refactoring, DTO Conversion, Lombok, and Design Practices

This article discusses practical Java programming techniques, including proper DTO conversion, use of BeanUtils, Lombok annotations, builder patterns, static constructors, validation with JSR‑303, and design considerations such as refactoring, strategy versus state patterns, to help developers write cleaner, more maintainable backend code.

DTODesign PatternsJava
0 likes · 27 min read
How to Write Better Java Code: Refactoring, DTO Conversion, Lombok, and Design Practices
Senior Brother's Insights
Senior Brother's Insights
Feb 25, 2019 · Backend Development

Master Spring @Configuration and @Bean: From Java Classes to Fully Configured Beans

Spring’s shift from XML to annotation‑based configuration is explained, covering @Configuration and @Bean requirements, example Java classes, equivalent XML, annotation definitions, bean scopes, component scanning, unit‑testing, and practical tips for wiring beans without field injection, providing a complete guide for modern Spring development.

AnnotationBeanDependency Injection
0 likes · 8 min read
Master Spring @Configuration and @Bean: From Java Classes to Fully Configured Beans
JD Tech
JD Tech
Feb 22, 2019 · Databases

Issues When Using Transactions with Database Read/Write Splitting

This article examines the challenges of using transactions with database read/write splitting, including potential master‑slave switching errors, connection‑pool deadlocks caused by isolation levels and propagation, and presents Spring‑based dynamic data source and transaction management solutions.

Dynamic Data SourceRead‑Write SplittingSpring
0 likes · 6 min read
Issues When Using Transactions with Database Read/Write Splitting
Java Backend Technology
Java Backend Technology
Feb 17, 2019 · Backend Development

9 Essential Spring Design Patterns Every Java Developer Should Master

This article explores nine commonly used Spring design patterns—including Simple Factory, Factory Method, Singleton, Adapter, Wrapper, Proxy, Observer, Strategy, and Template Method—explaining their concepts, showing XML or Java code examples, and illustrating how Spring implements each pattern in real applications.

Backend DevelopmentDependency InjectionDesign Patterns
0 likes · 9 min read
9 Essential Spring Design Patterns Every Java Developer Should Master