随笔分类 -  框架

摘要:###统一json返回的数据格式 1.接上篇,在common中添加常数类 1.1ApiResult类 /** * 统一返回对象 * * @author haowei */ //@ApiModel("返回对象") @Getter @Setter @ToString @Builder public cl 阅读全文
posted @ 2022-05-29 21:55 想吃坚果 阅读(347) 评论(0) 推荐(0) 编辑
摘要:##创建SpringBoot项目 1.创建空项目 2.在项目结构中添加模块 3.选择添加SPring Initializr模块 4.新建Controller类,测试springboot @RestController @RequestMapping("/users") public class Us 阅读全文
posted @ 2022-05-16 22:42 想吃坚果 阅读(29) 评论(0) 推荐(0) 编辑
摘要:##Spring+Mybatis+MP ###使用SpringBoot实现增删改查 1.编写pom文件 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-st 阅读全文
posted @ 2022-05-13 23:21 想吃坚果 阅读(14) 评论(0) 推荐(0) 编辑
摘要:##MyBatis-Plus ###用Mybatid-plus实现增删改查 1.将StudentMapper接口继承BaseMapper,将拥有了BaseMapper中的所有方法: public interface StudentMapper extends BaseMapper<Student> 阅读全文
posted @ 2022-05-12 22:21 想吃坚果 阅读(38) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示