3
一个简单springboot起步模板脚手架
source link: https://www.jdon.com/72395.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
一个简单springboot起步模板脚手架 - 极道
这是一个简单的spring-boot项目脚手架,点击标题
SpringBoot很方便,但不能开箱即用,现在开源的脚手架又过于复杂,于是整理了这个简单的脚手脚。
- 登录和鉴权
- SpringBoot
- SpringSecurity
- Mybatis
- Mybatis Page Helper
- Apache common lang3
- 拷贝项目到本地,导入IDE,在 pom.xml 修改项目的 groupId、artifactIdgit clone [email protected]:crazyrunsnail/spring-boot-template.git my-project-name
- 在数据库执行 src/main/resources/db/migration/V1__init.sql 里的sql语句
- (可选)修改项目路径,在IDE中使用 rename 功能
参考的工作流
- 数据库建模,生在SQL语句,使用 mybatis-generator 的 maven 插件生成 Model, Mapper接口和Mapper.xml。[list=1]
- 将Model中的getter和setter删除使用Lombok @Data
- 在Mapper接口上加上 @Mapper
- search
- getById
- create
- update
- ModelSearchParam
- ModelCreateParam
- ModelUpdateParam
- ModelDTO
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK