|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
package net.mingsoft.config; |
|
|
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
|
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
|
import org.springframework.web.servlet.config.annotation.EnableWebMvc; |
|
|
|
|
@ -13,6 +14,7 @@ import springfox.documentation.spring.web.plugins.Docket; |
|
|
|
|
import springfox.documentation.swagger2.annotations.EnableSwagger2; |
|
|
|
|
|
|
|
|
|
@Configuration |
|
|
|
|
@ConditionalOnProperty(prefix="ms",name = "swagger.enable", havingValue = "true") |
|
|
|
|
public class SwaggerConfig { |
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
|
|