From e51834c899ff20781295410961934eb06239385c Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Sat, 16 May 2026 21:18:32 +0530 Subject: Added spring-boot sample applications --- .../src/main/resources/application.properties | 12 ++++++++++++ .../src/main/resources/templates/form.html | 17 +++++++++++++++++ .../src/main/resources/templates/index.html | 16 ++++++++++++++++ .../src/main/resources/templates/result.html | 15 +++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 spring-boot/05-bank-rest-client/src/main/resources/application.properties create mode 100644 spring-boot/05-bank-rest-client/src/main/resources/templates/form.html create mode 100644 spring-boot/05-bank-rest-client/src/main/resources/templates/index.html create mode 100644 spring-boot/05-bank-rest-client/src/main/resources/templates/result.html (limited to 'spring-boot/05-bank-rest-client/src/main/resources') diff --git a/spring-boot/05-bank-rest-client/src/main/resources/application.properties b/spring-boot/05-bank-rest-client/src/main/resources/application.properties new file mode 100644 index 0000000..cf862c6 --- /dev/null +++ b/spring-boot/05-bank-rest-client/src/main/resources/application.properties @@ -0,0 +1,12 @@ +# Possible locations of this file: +# (Properties defined in locations higher in the list override those defined in lower locations) +# +# A /config subdirectory of the current directory +# The current directory +# A classpath /config package +# The classpath root +# + +server.port = 8081 + +rest.baseURL=http://localhost:8080 \ No newline at end of file diff --git a/spring-boot/05-bank-rest-client/src/main/resources/templates/form.html b/spring-boot/05-bank-rest-client/src/main/resources/templates/form.html new file mode 100644 index 0000000..7927b92 --- /dev/null +++ b/spring-boot/05-bank-rest-client/src/main/resources/templates/form.html @@ -0,0 +1,17 @@ + + + + + Check Account Balance + + + + +

Form

+
+

Account number:

+

+
+ + + \ No newline at end of file diff --git a/spring-boot/05-bank-rest-client/src/main/resources/templates/index.html b/spring-boot/05-bank-rest-client/src/main/resources/templates/index.html new file mode 100644 index 0000000..f30a2c0 --- /dev/null +++ b/spring-boot/05-bank-rest-client/src/main/resources/templates/index.html @@ -0,0 +1,16 @@ + + + + + Check Account Balance + + + + + +Access /acc + + + + + diff --git a/spring-boot/05-bank-rest-client/src/main/resources/templates/result.html b/spring-boot/05-bank-rest-client/src/main/resources/templates/result.html new file mode 100644 index 0000000..15393be --- /dev/null +++ b/spring-boot/05-bank-rest-client/src/main/resources/templates/result.html @@ -0,0 +1,15 @@ + + + + Check Account Balance + + + +

Result

+ +

+

+ + Try again + + \ No newline at end of file -- cgit v1.2.3