1.@Api()用于类;
表示标识这个类是swagger的资源;
@ApiOperation不是spring自带的注解是swagger里的 com.wordnik.swagger. annotations.ApiOperation;
@ApiOperation和@ApiParam为添加的API相关注解,个参数说明如下:
@ApiOperation(value = “接口说明”, httpMethod = “接口请求方式”, response = “接口返回参数类型”, notes = “接口发布说明”);其他参数可参考源码;
@ApiParam(required = “是否必须参数”, name = “参数名称”, value = “参数具体描述”)
2.如果不想每次都写private final Logger logger = LoggerFactory. getLogger(当前类名.class);
可以用注解@Slf4j;
3.@RestControl



