Class HelloController
- java.lang.Object
-
- com.example.chaos.monkey.chaosdemo.controller.HelloController
-
@Controller public class HelloController extends Object
- Author:
- Benjamin Wilms
-
-
Constructor Summary
Constructors Constructor Description HelloController(GreetingService greetingService)
-
Method Summary
Modifier and Type Method Description org.springframework.http.ResponseEntity<String>greet()org.springframework.http.ResponseEntity<String>greetFromDb()org.springframework.http.ResponseEntity<String>greetFromDbById()org.springframework.http.ResponseEntity<String>greetFromDbByIdAnnotation()org.springframework.http.ResponseEntity<String>greetFromDbByIdJpa()org.springframework.http.ResponseEntity<String>sayGoodbye()org.springframework.http.ResponseEntity<String>sayHello()
-
-
-
Constructor Detail
-
HelloController
public HelloController(GreetingService greetingService)
-
-
Method Detail
-
sayHello
@GetMapping("/hello") public org.springframework.http.ResponseEntity<String> sayHello()
-
greet
@GetMapping("/greet") public org.springframework.http.ResponseEntity<String> greet()
-
greetFromDb
@GetMapping("/dbgreet") public org.springframework.http.ResponseEntity<String> greetFromDb()
-
greetFromDbById
@GetMapping("/findbyid") public org.springframework.http.ResponseEntity<String> greetFromDbById()
-
greetFromDbByIdJpa
@GetMapping("/jpa/findbyid") public org.springframework.http.ResponseEntity<String> greetFromDbByIdJpa()
-
greetFromDbByIdAnnotation
@GetMapping("/common/findbyid") public org.springframework.http.ResponseEntity<String> greetFromDbByIdAnnotation()
-
sayGoodbye
@GetMapping("/goodbye") public org.springframework.http.ResponseEntity<String> sayGoodbye()
-
-