码迷,mamicode.com
首页 > 编程语言 > 详细

SpringBoot注解

时间:2019-12-11 19:44:30      阅读:106      评论:0      收藏:0      [点我收藏+]

标签:主键   save   com   start   result   tco   class   ash   boot   

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注解

标签:主键   save   com   start   result   tco   class   ash   boot   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!