Implementing Multiple Data Sources in Spring Boot with AOP
Implementing Multiple Data Sources in Spring Boot with AOP
In this article, we'll explore how to configure a Spring Boot application with multiple database connections using Aspect-Oriented Programming (AOP). We'll use HikariCP as the connection pool, MybatisPlus as the ORM framework, and demonstrate connections to both MySQL and SQL Server dat ...
Posted on Sat, 16 May 2026 17:23:36 +0000 by mk_silence
Custom Velocity Templates for MyBatisPlus Code Generation
Controller Template
package ${package.Controller};
import org.springframework.web.bind.annotation.RequestMapping;
#if(${restControllerStyle})
import org.springframework.web.bind.annotation.RestController;
#else
import org.springframework.stereotype.Controller;
#end
#if(${superControllerClassPackage})
import ${superControllerClassPackage};
#end ...
Posted on Wed, 13 May 2026 21:34:02 +0000 by jd57
Executing MySQL find_in_set with MyBatisPlus
Using MyBatisPlus to Execute MySQL's find_in_set Function
In real-world application development, there are frequently scanarios where we need to query database records containing a specific value within a comma-separated field. MySQL provides the find_in_set function specifically for this purpose. When working with Java applications, we can lev ...
Posted on Sun, 10 May 2026 19:20:49 +0000 by Denness