|
|
@ -2,6 +2,8 @@ package cn.teammodel.config.knife;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
|
|
|
import org.springframework.context.annotation.Profile;
|
|
|
|
|
|
|
|
|
|
|
|
import springfox.documentation.builders.ApiInfoBuilder;
|
|
|
|
import springfox.documentation.builders.ApiInfoBuilder;
|
|
|
|
import springfox.documentation.builders.PathSelectors;
|
|
|
|
import springfox.documentation.builders.PathSelectors;
|
|
|
|
import springfox.documentation.builders.RequestHandlerSelectors;
|
|
|
|
import springfox.documentation.builders.RequestHandlerSelectors;
|
|
|
@ -15,7 +17,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
@EnableSwagger2
|
|
|
|
@EnableSwagger2
|
|
|
|
//@Profile({"dev", "test"})
|
|
|
|
@Profile({"dev", "test"})
|
|
|
|
public class Knife4jConfig {
|
|
|
|
public class Knife4jConfig {
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|