From 2d2612ec0eb556633504a6831368e6b51f92ac2e Mon Sep 17 00:00:00 2001 From: "wangiegie@gmail.com" Date: Thu, 12 Oct 2017 20:11:02 +0800 Subject: [PATCH] [edit] modify find-bugs find bug Signed-off-by: wangiegie@gmail.com --- .../src/main/resources/config/pig-gateway.yml | 2 -- .../com/github/pig/PigGatewayApplication.java | 1 - .../pig/controller/IndexController.java | 20 ------------------- 3 files changed, 23 deletions(-) delete mode 100644 pig-gateway/src/main/java/com/github/pig/controller/IndexController.java diff --git a/pig-config/src/main/resources/config/pig-gateway.yml b/pig-config/src/main/resources/config/pig-gateway.yml index 705b05c8..b3857078 100644 --- a/pig-config/src/main/resources/config/pig-gateway.yml +++ b/pig-config/src/main/resources/config/pig-gateway.yml @@ -1,4 +1,2 @@ server: port: 1000 - -from: wangjie \ No newline at end of file diff --git a/pig-gateway/src/main/java/com/github/pig/PigGatewayApplication.java b/pig-gateway/src/main/java/com/github/pig/PigGatewayApplication.java index de8b9326..bf6de5a5 100644 --- a/pig-gateway/src/main/java/com/github/pig/PigGatewayApplication.java +++ b/pig-gateway/src/main/java/com/github/pig/PigGatewayApplication.java @@ -3,7 +3,6 @@ package com.github.pig; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; -import org.springframework.cloud.netflix.eureka.EnableEurekaClient; @EnableDiscoveryClient @SpringBootApplication diff --git a/pig-gateway/src/main/java/com/github/pig/controller/IndexController.java b/pig-gateway/src/main/java/com/github/pig/controller/IndexController.java deleted file mode 100644 index 52a86f08..00000000 --- a/pig-gateway/src/main/java/com/github/pig/controller/IndexController.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.github.pig.controller; - -import org.springframework.beans.factory.annotation.Value; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RestController; - -/** - * @author wangjie19558 - * @date 2017/10/12 - */ -@RestController -public class IndexController { - @Value("${from}") - private String from; - - @GetMapping("/") - public String index() { - return from; - } -}