Modify sonarqube analysis
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user