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