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