Modify sonarqube analysis

This commit is contained in:
kimyonghwa
2019-04-17 10:57:10 +09:00
parent 73804c1189
commit 02a4b3b7ea
5 changed files with 13 additions and 16 deletions

View File

@@ -9,6 +9,8 @@ import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class HelloController {
private static final String HELLO = "helloworld";
@Setter
@Getter
public static class Hello {
@@ -18,19 +20,19 @@ public class HelloController {
@GetMapping(value = "/helloworld/string")
@ResponseBody
public String helloworldString() {
return "helloworld";
return HELLO;
}
@GetMapping(value = "/helloworld/json")
@ResponseBody
public Hello helloworldJson() {
Hello hello = new Hello();
hello.message = "helloworld";
hello.message = HELLO;
return hello;
}
@GetMapping(value = "/helloworld/page")
public String helloworld() {
return "helloworld";
return HELLO;
}
}