Tagged articles

Generic Controller

3 articles · Page 1 of 1
Java Tech Enthusiast
Java Tech Enthusiast
May 15, 2025 · Backend Development

Automate CRUD with a Generic BaseController in Spring Boot

This guide shows how to create a reusable BaseController using MyBatis‑Plus, reflection utilities, and Spring Boot annotations to provide automatic CRUD, list, pagination and count endpoints for any entity with minimal code.

CRUDGeneric ControllerREST API
0 likes · 10 min read
Automate CRUD with a Generic BaseController in Spring Boot
Sohu Tech Products
Sohu Tech Products
Feb 26, 2025 · Backend Development

Implementing a Generic Aggregate CRUD Controller with Spring MVC and MyBatisPlus

The article demonstrates how to refactor a large PHP API suite into a Java Spring MVC application by creating a generic AggregateController that, through model‑name mapping, reflection‑based repository registration and a thread‑safe MappingKit, provides CRUD endpoints for any table, collapsing hundreds of endpoints into just two controllers for client and admin.

CRUDGeneric ControllerMybatisPlus
0 likes · 12 min read
Implementing a Generic Aggregate CRUD Controller with Spring MVC and MyBatisPlus