Class HelloController


  • @Controller
    public class HelloController
    extends Object
    Author:
    Benjamin Wilms
    • 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()