|  |  |  | @ -1,9 +1,9 @@ | 
			
		
	
		
			
				
					|  |  |  |  | package com.glxp.api.config; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | import org.springframework.beans.factory.annotation.Value; | 
			
		
	
		
			
				
					|  |  |  |  | import org.springframework.context.annotation.Bean; | 
			
		
	
		
			
				
					|  |  |  |  | import org.springframework.context.annotation.Configuration; | 
			
		
	
		
			
				
					|  |  |  |  | import org.springframework.context.annotation.Profile; | 
			
		
	
		
			
				
					|  |  |  |  | import springfox.documentation.builders.ApiInfoBuilder; | 
			
		
	
		
			
				
					|  |  |  |  | import springfox.documentation.builders.PathSelectors; | 
			
		
	
		
			
				
					|  |  |  |  | import springfox.documentation.builders.RequestHandlerSelectors; | 
			
		
	
	
		
			
				
					|  |  |  | @ -11,12 +11,11 @@ import springfox.documentation.spi.DocumentationType; | 
			
		
	
		
			
				
					|  |  |  |  | import springfox.documentation.spring.web.plugins.Docket; | 
			
		
	
		
			
				
					|  |  |  |  | import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | @Profile({"dev","test"}) | 
			
		
	
		
			
				
					|  |  |  |  | @Configuration | 
			
		
	
		
			
				
					|  |  |  |  | @EnableSwagger2WebMvc | 
			
		
	
		
			
				
					|  |  |  |  | public class Knife4jConfiguration { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @Value("${knife4j.enable:false}") | 
			
		
	
		
			
				
					|  |  |  |  |     private boolean enable; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @Bean(value = "defaultApi2") | 
			
		
	
		
			
				
					|  |  |  |  |     public Docket defaultApi2() { | 
			
		
	
	
		
			
				
					|  |  |  | @ -26,7 +25,6 @@ public class Knife4jConfiguration { | 
			
		
	
		
			
				
					|  |  |  |  |                         .description("UDI管理系统后台 - APIS") | 
			
		
	
		
			
				
					|  |  |  |  |                         .version("1.0") | 
			
		
	
		
			
				
					|  |  |  |  |                         .build()) | 
			
		
	
		
			
				
					|  |  |  |  |                 .enable(enable) | 
			
		
	
		
			
				
					|  |  |  |  |                 .select() | 
			
		
	
		
			
				
					|  |  |  |  |                 //这里指定Controller扫描包路径
 | 
			
		
	
		
			
				
					|  |  |  |  |                 .apis(RequestHandlerSelectors.basePackage("com.glxp.api.controller")) | 
			
		
	
	
		
			
				
					|  |  |  | 
 |