package com.iailab.framework.swagger.config; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import javax.validation.constraints.NotEmpty; /** * Swagger é…置属性 * * @author iailab */ @ConfigurationProperties("iailab.swagger") @Data public class SwaggerProperties { /** * æ ‡é¢˜ */ @NotEmpty(message = "æ ‡é¢˜ä¸èƒ½ä¸ºç©º") private String title; /** * æè¿° */ @NotEmpty(message = "æè¿°ä¸èƒ½ä¸ºç©º") private String description; /** * 作者 */ @NotEmpty(message = "作者ä¸èƒ½ä¸ºç©º") private String author; /** * 版本 */ @NotEmpty(message = "版本ä¸èƒ½ä¸ºç©º") private String version; /** * url */ @NotEmpty(message = "扫æçš„ package ä¸èƒ½ä¸ºç©º") private String url; /** * email */ @NotEmpty(message = "扫æçš„ email ä¸èƒ½ä¸ºç©º") private String email; /** * license */ @NotEmpty(message = "扫æçš„ license ä¸èƒ½ä¸ºç©º") private String license; /** * license-url */ @NotEmpty(message = "扫æçš„ license-url ä¸èƒ½ä¸ºç©º") private String licenseUrl; }