|
@@ -2,6 +2,7 @@ package com.zfjg.gateway.handler;
|
|
|
|
|
|
import java.util.Optional;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.context.annotation.Profile;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -16,6 +17,7 @@ import springfox.documentation.swagger.web.UiConfigurationBuilder;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping("/swagger-resources")
|
|
|
+@Profile("dev")
|
|
|
public class SwaggerHandler
|
|
|
{
|
|
|
@Autowired(required = false)
|