地址是 http://localhost:31200/swagger-ui.html
1.接口定义必须使用的注解
@Api(value = "课程管理接口",description = "课程管理接口,提供课程的增 删 改 查")
2.Controller中使用的注解
@RestController
@GetMapping("/teachplan/list/{courseId}")
(@PathVariable("courseId")
案例
地址是 http://localhost:31200/swagger-ui.html
1.接口定义必须使用的注解
@Api(value = "课程管理接口",description = "课程管理接口,提供课程的增 删 改 查")
2.Controller中使用的注解
@RestController
@GetMapping("/teachplan/list/{courseId}")
(@PathVariable("courseId")
案例