[edit] modify find-bugs find bug

Signed-off-by: wangiegie@gmail.com <wangiegie@gmail.com>
This commit is contained in:
wangiegie@gmail.com 2017-10-12 20:11:02 +08:00
parent a0f9b4f872
commit 2d2612ec0e
3 changed files with 0 additions and 23 deletions

View File

@ -1,4 +1,2 @@
server:
port: 1000
from: wangjie

View File

@ -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

View File

@ -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;
}
}