mirror of https://gitee.com/maxjhandsome/pig
[edit] modify find-bugs find bug
Signed-off-by: wangiegie@gmail.com <wangiegie@gmail.com>
This commit is contained in:
parent
a0f9b4f872
commit
2d2612ec0e
|
@ -1,4 +1,2 @@
|
||||||
server:
|
server:
|
||||||
port: 1000
|
port: 1000
|
||||||
|
|
||||||
from: wangjie
|
|
|
@ -3,7 +3,6 @@ package com.github.pig;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||||
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
|
|
||||||
|
|
||||||
@EnableDiscoveryClient
|
@EnableDiscoveryClient
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue