diff options
Diffstat (limited to 'spring-boot/03-bank-jdbc-rest/src/main/java/com/example/spring/hello')
| -rw-r--r-- | spring-boot/03-bank-jdbc-rest/src/main/java/com/example/spring/hello/HelloController.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spring-boot/03-bank-jdbc-rest/src/main/java/com/example/spring/hello/HelloController.java b/spring-boot/03-bank-jdbc-rest/src/main/java/com/example/spring/hello/HelloController.java new file mode 100644 index 0000000..bb287ba --- /dev/null +++ b/spring-boot/03-bank-jdbc-rest/src/main/java/com/example/spring/hello/HelloController.java @@ -0,0 +1,14 @@ +package com.example.spring.hello; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +@Controller +public class HelloController { + @RequestMapping("/") + @ResponseBody + String home() { + return "App is running! Access http://host:port/account/{accountNumber}"; + } +}
\ No newline at end of file |
