# springboot-mybatis-generator **Repository Path**: fhd1992/springboot-mybatis-generator ## Basic Information - **Project Name**: springboot-mybatis-generator - **Description**: springboot+mybatis-plus-generator 自定义模板产生基础controller,service,dao,entity,XML,已有CRUD接口,自己修改的模板,和mybatis-plus-generator有点不同,逆向工程,代码生成 - **Primary Language**: Java - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2020-09-30 - **Last Updated**: 2023-07-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # springboot-mybatis-generator #### 介绍 springboot+mybatis-plus-generator 自定义模板产生基础controller,service,dao,entity,XML,已有CRUD接口 #### 生成内容 #Controller ``` /** *
* 学生信息表 前端控制器 *
* * @author fhd * @since 2020-09-30 */ @RestController @RequestMapping("/st/student") public class StudentController { private final Logger LOG = LoggerFactory.getLogger(StudentController.class); @Autowired private StudentService studentService; /** * 添加 */ @PostMapping("/saveStudent") public RestResult saveStudent(@RequestBody Student student) { studentService.saveStudent(student); return RestResult.success(); } /** * id查询 */ @PostMapping("/findStudentById") public RestResult findStudentById(@RequestBody Student student) { Student ojb = studentService.findStudentById(student); return RestResult.success(ojb); } /** * 分页查询 */ @PostMapping("/findStudentList") public RestResult findStudentList(@RequestBody Student student) { List* 学生信息表 服务实现类 *
* * @author fhd * @since 2020-09-30 */ @Service public class StudentServiceImpl implements StudentService { private final Logger LOG = LoggerFactory.getLogger(StudentServiceImpl.class); @Autowired private StudentMapper studentMapper; /** * 添加 */ @Override public void saveStudent(Student student) { studentMapper.saveStudent(student); } /** * id查询 */ @Override public Student findStudentById(Student student) { Student ojb = studentMapper.findStudentById(student); return ojb; } /** * 分页查询 */ @Override public List