SpringBoot注解

Controller

@Api(tags = "##")
@RestController
@RequestMapping("/##/##")
@Autowired
@Qualifier("##ServiceImpl")
private ##Service ##Service;
@ApiOperation("##")
@RequestMapping("/##")
@ApiImplicitParams({
@ApiImplicitParam(name = "page", value = "当前页", required = false, dataType = "Integer"),
@ApiImplicitParam(name = "limit", value = "分页大小", required = false, dataType = "Integer")})
public Result save(@ApiParam(value = "##",required = true) @RequestBody JSONObject data) {}

entity

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="##对象", description="##表")
@ApiModelProperty(value = "主键")
private String id;

StartupApplication

@SpringBootApplication
@ComponentScan("##")
@MapperScan("##")
@EnableTransactionManagement(proxyTargetClass = true)

原文地址:https://www.cnblogs.com/xiaoyinger/p/12024381.html