Issue Origin Recently, I took over a project that uses MyBatis and MyBatis-Plus for database operations. We needed to add new functionality to this system. During development, everything went smoothly, and I quickly completed my part of the module. Then, I started integrating with the front end. How...
MyBatis-Plus is an enhanced toolkit built on top of MyBatis, providing powerful CRUD operations without modifying the original framework. It offers zero intrusion, minimal performance overhead, built-in CRUD functionality, Lambda expression support, code generation, pagination plugins, and multi-dat...
Configuring Multiple Data Sources in Spring Boot To support heterogeneous database access—such as reading from both MySQL and PostgreSQL—Spring Boot applications can be configured with multiple data sources using dynamic routing. Dependency Setup Add the following dependencies to pom.xml: <depend...
Technical ArchitectureThe backend service is powered by the Spring Boot framework. This framework leverages an embedded Tomcat container, removing the need for manual WAR file deployment. Its auto-configuration mechanism adapts application settings based on detected classpath dependencies, significa...
Technology Stack OverviewBackend Framework: SpringBootSpringBoot simplifies application development by embedding servers like Tomcat, Jetty, and Undertow directly into the framework. This eliminates the need for external server installation and complex configuration. The auto-configuration mechanism...
Core Technology Stack The backend infrastructure relies on Spring Boot, which encapsulates embedded servlet containers such as Tomcat and Undertow. This eliminates manual server deployment steps. Auto-configuration mechanisms automatically resolve dependencies, allowing developers to focus on busine...
Window Management Shortcuts Minimize all open windows with Caps Lock + Win + m, restore minimized windows with Shift + Win + m. Use Ctrl + Shift + U to toggle the case of selected text. MyBatis-Plus Best Practices Prefer database-side queries over Java Stream operations for improved performance. Com...
Adding MyBatis-Plus Dependency Include the starter in your Maven project, ensuring version compatibility with your Spring Boot and MyBatis release: <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.4.1</v...
After obtaining the source code from the official site, follow the setup instructions to launch the front-end and back-end components of the decoupled project. Environment Constraints On Windows 7, Node.js must be version 10 or earlier; newer releases are incompatible. When using MySQL, executing th...
MyBatis-Plus includes a robust set of Wrapper classes for creating complex database query conditions. The primary Wrapper types are: QueryWrapper: Builds query conditions with support for equality, inequality, greater-than, less-than, and other oeprations. It allows chaining multiple conditions and...