com.reger.swagger.properties.Swagger2Properties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-starter-swagger Show documentation
Show all versions of spring-boot-starter-swagger Show documentation
Spring Boot整合的swagger的配置,支持分组配置,分环境启用。
package com.reger.swagger.properties;
import java.util.Map;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(Swagger2Properties.prefix)
public class Swagger2Properties {
public static final String prefix = "spring";
private Map swaggerGroup;
public Map getSwaggerGroup() {
return swaggerGroup;
}
public void setSwaggerGroup(Map swaggerGroup) {
this.swaggerGroup = swaggerGroup;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy