diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-05-16 21:18:32 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-05-16 21:18:32 +0530 |
| commit | e51834c899ff20781295410961934eb06239385c (patch) | |
| tree | 78f0058914063e37cbd6812d204e4f84efd0ab90 /spring-boot/04-bank-jpa-rest/src/main/resources | |
| parent | b1d598a2f02819bc127d0d3522dc7ac91b4dee65 (diff) | |
Added spring-boot sample applications
Diffstat (limited to 'spring-boot/04-bank-jpa-rest/src/main/resources')
4 files changed, 22 insertions, 0 deletions
diff --git a/spring-boot/04-bank-jpa-rest/src/main/resources/application.properties b/spring-boot/04-bank-jpa-rest/src/main/resources/application.properties new file mode 100644 index 0000000..16ae16c --- /dev/null +++ b/spring-boot/04-bank-jpa-rest/src/main/resources/application.properties @@ -0,0 +1,21 @@ +# 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 +# + +spring.profiles.active=dev + +spring.datasource.url=jdbc:mariadb://localhost:3306/bankdb +spring.datasource.username=bankdbuser +spring.datasource.password=abc123 + +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect + +spring.jpa.hibernate.ddl-auto=create-drop +spring.jpa.show-sql=true + +bankapp.init-testdata=0 diff --git a/spring-boot/04-bank-jpa-rest/src/main/resources/config/application-default.properties b/spring-boot/04-bank-jpa-rest/src/main/resources/config/application-default.properties new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/spring-boot/04-bank-jpa-rest/src/main/resources/config/application-default.properties diff --git a/spring-boot/04-bank-jpa-rest/src/main/resources/config/application-dev.properties b/spring-boot/04-bank-jpa-rest/src/main/resources/config/application-dev.properties new file mode 100644 index 0000000..8dd7a1b --- /dev/null +++ b/spring-boot/04-bank-jpa-rest/src/main/resources/config/application-dev.properties @@ -0,0 +1 @@ +bankapp.init-testdata=1
\ No newline at end of file diff --git a/spring-boot/04-bank-jpa-rest/src/main/resources/config/application-production.properties b/spring-boot/04-bank-jpa-rest/src/main/resources/config/application-production.properties new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/spring-boot/04-bank-jpa-rest/src/main/resources/config/application-production.properties |
