一个简单springboot起步模板脚手架
💡
原文中文,约800字,阅读约需2分钟。
📝
内容提要
这是一个简单的spring-boot项目脚手架,具有登录和鉴权、代码生成、接口文档、参数校验等特性。使用SpringBoot、SpringSecurity、Mybatis等库。使用方法:拷贝项目到本地,修改项目路径,执行数据库语句,生成Model、Mapper接口和Mapper.xml。新增Service接口实现和Controller调用。
🎯
关键要点
- 这是一个简单的spring-boot项目脚手架,具有多种特性。
- 特性包括:登录和鉴权、代码生成、接口文档、参数校验等。
- 使用的库有SpringBoot、SpringSecurity、Mybatis等。
- 使用方法包括拷贝项目到本地,修改项目路径,执行数据库语句。
- 生成Model、Mapper接口和Mapper.xml需要使用mybatis-generator的maven插件。
- 新增Service接口实现和Controller调用,常规有四个方法:search、getById、create、update。
- 相应的入参DTO包括ModelSearchParam、ModelCreateParam、ModelUpdateParam,出参DTO为ModelDTO。
🏷️
标签
➡️