CodeSmart Hoops
Author

CodeSmart Hoops

A working programmer who loves coding and basketball. By day I debug code; by night I dissect tactics. I write articles to document my journey, focusing on Java, AI, Python and other programming topics, with occasional posts about basketball, English, and books. Hope it's helpful—thanks for following and support.

27
Articles
0
Likes
18
Views
0
Comments
Recent Articles

Latest from CodeSmart Hoops

27 recent articles
CodeSmart Hoops
CodeSmart Hoops
Jun 1, 2026 · Interview Experience

Spring AOP Deep Dive: Interview Quiz & Answers – What's New in Spring Boot 3.x Default Proxy?

This article presents a 17‑question interview self‑test on Spring AOP, providing detailed answers that cover JDK dynamic proxy vs CGLIB, the internal flow of Proxy.newProxyInstance, InvocationHandler dispatch, MethodProxy differences, the interceptor chain, @Around requirements, AopContext ThreadLocal, self‑invocation pitfalls, final/static/private method limitations, @Order priority, Spring AOP vs AspectJ capabilities, performance of @Around vs @Before, multi‑factor aspect ordering, notification order changes between Spring 5 and 6, default proxy strategy differences in Spring Boot 2.x and 3.x, and migration considerations.

CGLIBJavaProxy
0 likes · 35 min read
Spring AOP Deep Dive: Interview Quiz & Answers – What's New in Spring Boot 3.x Default Proxy?
CodeSmart Hoops
CodeSmart Hoops
May 31, 2026 · Backend Development

Hands‑On Unit Testing of Spring’s Full Event‑Driven Architecture

This guide walks through comprehensive unit tests for Spring Boot 3.x / Spring Framework 6.x event‑driven features—covering @EventListener, ApplicationListener, @Order, @Async, TransactionalEventListener, exception propagation, multiple event publishing, POJO events, and a comparison of three asynchronous handling approaches—using JDK 17+, JUnit 5, and Spring Boot Test.

@TransactionalAsyncJava
0 likes · 25 min read
Hands‑On Unit Testing of Spring’s Full Event‑Driven Architecture
CodeSmart Hoops
CodeSmart Hoops
May 25, 2026 · Backend Development

Hands‑On Unit Tests for Full Spring Cache Features

This guide walks through setting up a Spring Boot 3.x project with JDK 17+, adding the necessary Maven dependencies, and implementing a comprehensive JUnit 5 test suite that demonstrates @Cacheable, @CachePut, @CacheEvict (single‑key and all‑entries), SpEL‑based keys, condition/unless caching, and the AOP proxy pitfall of same‑class calls, plus instructions for running the tests via Maven or IntelliJ IDEA.

JUnit5JavaSpring
0 likes · 19 min read
Hands‑On Unit Tests for Full Spring Cache Features
CodeSmart Hoops
CodeSmart Hoops
May 18, 2026 · Backend Development

Unit Testing Spring Transaction Propagation: Practical Insights

This article provides a complete, runnable unit‑test suite for Spring Boot 3.x that demonstrates and verifies every transaction‑propagation behavior (REQUIRED, REQUIRES_NEW, NESTED, SUPPORTS, MANDATORY), highlights common pitfalls such as self‑calls and swallowed exceptions, and shows how to configure the environment, write the test code, and run the tests.

H2 DatabaseJUnit 5Spring Boot
0 likes · 15 min read
Unit Testing Spring Transaction Propagation: Practical Insights
CodeSmart Hoops
CodeSmart Hoops
May 13, 2026 · Backend Development

Spring Circular Dependency Unit Tests: Full Analysis and Hands‑On Demo

This article provides a comprehensive set of JUnit 5 unit tests that demonstrate how Spring Boot 3.x and Spring Framework 6.x handle various circular dependency scenarios—including field, setter, constructor, @Lazy, prototype beans, three‑bean cycles, and AOP proxy interactions—along with Maven and IDE run instructions.

AOPCircular DependencyJava
0 likes · 12 min read
Spring Circular Dependency Unit Tests: Full Analysis and Hands‑On Demo
CodeSmart Hoops
CodeSmart Hoops
May 7, 2026 · Interview Experience

E‑commerce Concurrency Case Study: 12 Interview Questions with Answers

This article provides a self‑test for interview preparation, presenting twelve common interview questions and detailed answers on an e‑commerce concurrency case, covering serial vs async performance, CompletableFuture.allOf, ConcurrentHashMap.compute atomicity, layered cache design, Semaphore rate limiting, ReentrantLock fairness, AtomicInteger CAS, exceptional fallback, double‑layer protection, concurrency safety testing, thread‑pool configuration, and precise cache invalidation.

CompletableFutureJavaatomicinteger
0 likes · 21 min read
E‑commerce Concurrency Case Study: 12 Interview Questions with Answers