SpringBoot注解
Posted Amy小影儿
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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)
以上是关于SpringBoot注解的主要内容,如果未能解决你的问题,请参考以下文章
Springboot(四):springboot的注解都有哪些注解
SpringBoot 高级 原理分析 -- @Enable*注解@Import注解