Spring Swagger常见注解功能介绍
@RestController
@RequestMapping("/api/xxx")
@Service("xxx")
@Autowired
@Target(Element.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@ConfigurationProperties(prefix = "xxx")
@PostMapping
@PostConstruct
@Transational https://blog.csdn.net/nangongwudi/article/details/79150054
@API(tags = { "xxx" })
@ApiOperation(value=",httpMethod="",notes = "")
@ApiImplicitParams(
{@ApiImplicitParam(paramType="form",dataType="",name="",required=true,value="")}
)
upload(ApiParam(name="form",required=true,value="上传文件") @RequestParam(value="file",required=false) MultipartFile f,ht)