@Controller public class HelloController extends Object
| Constructor and Description |
|---|
HelloController(GreetingService greetingService) |
| Modifier and Type | Method and 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() |
public HelloController(GreetingService greetingService)
@GetMapping(value="/hello") public org.springframework.http.ResponseEntity<String> sayHello()
@GetMapping(value="/greet") public org.springframework.http.ResponseEntity<String> greet()
@GetMapping(value="/dbgreet") public org.springframework.http.ResponseEntity<String> greetFromDb()
@GetMapping(value="/findbyid") public org.springframework.http.ResponseEntity<String> greetFromDbById()
@GetMapping(value="/jpa/findbyid") public org.springframework.http.ResponseEntity<String> greetFromDbByIdJpa()
@GetMapping(value="/common/findbyid") public org.springframework.http.ResponseEntity<String> greetFromDbByIdAnnotation()
@GetMapping(value="/goodbye") public org.springframework.http.ResponseEntity<String> sayGoodbye()
Copyright © 2019 codecentric AG. All rights reserved.