增加 swagger starter
This commit is contained in:
@@ -26,6 +26,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||
@ConditionalOnClass({Docket.class, ApiInfoBuilder.class})
|
||||
@ConditionalOnProperty(prefix = "swagger", value = "enable", matchIfMissing = true) // 允许使用 swagger.enable=false 禁用 Swagger
|
||||
@EnableConfigurationProperties(SwaggerProperties.class)
|
||||
@Deprecated
|
||||
public class SwaggerAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -5,6 +5,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
@Data
|
||||
@ConfigurationProperties("swagger")
|
||||
@Deprecated
|
||||
public class SwaggerProperties {
|
||||
|
||||
private String title;
|
||||
|
||||
Reference in New Issue
Block a user