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.

41
Articles
0
Likes
152
Views
0
Comments
Recent Articles

Latest from CodeSmart Hoops

41 recent articles
CodeSmart Hoops
CodeSmart Hoops
Jun 17, 2026 · Backend Development

Hands‑On Unit Testing of MyBatis‑Plus with Spring Boot 3

This guide demonstrates how to set up a Spring Boot 3.x project with MyBatis‑Plus, configure Maven dependencies, H2 database, and JPA, then write comprehensive JUnit 5 tests covering CRUD, LambdaQueryWrapper queries, pagination, logical deletion, and automatic timestamp filling, with step‑by‑step commands to run the tests.

JUnit 5JavaMyBatis-Plus
0 likes · 20 min read
Hands‑On Unit Testing of MyBatis‑Plus with Spring Boot 3
CodeSmart Hoops
CodeSmart Hoops
Jun 14, 2026 · Backend Development

JPA Full Guide: Interview Self‑Test with Answers

This article provides a comprehensive interview self‑test covering JPA, Hibernate, and Spring Data JPA, including entity lifecycle states, repository proxy creation, PartTree method parsing, first‑level cache behavior, dirty checking, transaction binding, N+1 query problems, lazy loading exceptions, JPQL vs native queries, save vs persist differences, and the semantics of findAll returning an empty collection.

EntityHibernateJPA
0 likes · 19 min read
JPA Full Guide: Interview Self‑Test with Answers
CodeSmart Hoops
CodeSmart Hoops
Jun 8, 2026 · Backend Development

Hands‑On Unit Tests for a Complete MyBatis Integration with Spring Boot 3

This guide walks through a full MyBatis unit‑testing suite built on Spring Boot 3.x and JDK 17+, showing how to configure Maven dependencies, set up an H2 datasource, write POJOs, define mapper interfaces and XML, and verify features such as mapper proxies, parameter binding, dynamic SQL, resultMap mapping, camel‑case conversion and first‑level caching with JUnit 5.

Dynamic SQLJUnit 5MyBatis
0 likes · 25 min read
Hands‑On Unit Tests for a Complete MyBatis Integration with Spring Boot 3
CodeSmart Hoops
CodeSmart Hoops
Jun 3, 2026 · Backend Development

Spring Event-Driven Architecture: Interview Self-Test with Observer Pattern and Decoupling Design

This article provides a comprehensive interview self‑test on Spring's event‑driven mechanism, covering the three core components, synchronous vs asynchronous handling, the role and default implementation of ApplicationEventMulticaster, adapter flow, async configuration options, @TransactionalEventListener phases, exception propagation, @Order ordering, SpEL condition filtering, a comparison with MQ, POJO events, and the listenerCache optimization.

BackendSpELSpring
0 likes · 21 min read
Spring Event-Driven Architecture: Interview Self-Test with Observer Pattern and Decoupling Design
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.

@TransactionalJavaSpring
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.

AOPJavaPrototype Bean
0 likes · 12 min read
Spring Circular Dependency Unit Tests: Full Analysis and Hands‑On Demo