08 2023 档案
摘要:1. 添加tkMapper依赖(需要用来自动生成实体类,所以放在beans子工程的pom.xml中) <!-- https://mvnrepository.com/artifact/tk.mybatis/mapper-spring-boot-starter --> <dependency> <gro
阅读全文
摘要:1. 实体类 @Data @AllArgsConstructor @NoArgsConstructor @ApiModel(value = "User对象",description = "用户信息") public class User { @ApiModelProperty(value = "用户
阅读全文
摘要:Knife4j注解说明 1. @Api 添加在控制器类上,通过此注解的tags属性,可以指定模块名称,并且,在指定名称时,建议在名称前添加数字作为序号,Knife4j会根据这些数字将各模块升序排列,例如: @Api(value = "提供商品添加、修改、删除及查询的相关接⼝",tags = "01.
阅读全文
摘要:1. Swagger作用:生成接口说明文档;对接口进行测试。 2. 整合 2.1 在api子工程添加依赖(Swagger2 \ Swagger UI) <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 --
阅读全文