diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-06-13 21:03:31 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-06-13 21:03:31 +0530 |
| commit | f0001c5c8d8a33729b93d8d6e10d3af40bfabed6 (patch) | |
| tree | 6042e5bfdd48671daa95baf29c5041e526f5b62e /spring-boot/09-spring-security-db-authentication/src/main/resources/config | |
| parent | 6ae21cd4e51756ea14b43b82a9d500bca9fb8032 (diff) | |
Added sample application 09-spring-security-db-authentication
Diffstat (limited to 'spring-boot/09-spring-security-db-authentication/src/main/resources/config')
| -rw-r--r-- | spring-boot/09-spring-security-db-authentication/src/main/resources/config/application-dev.properties | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/spring-boot/09-spring-security-db-authentication/src/main/resources/config/application-dev.properties b/spring-boot/09-spring-security-db-authentication/src/main/resources/config/application-dev.properties new file mode 100644 index 0000000..50973c7 --- /dev/null +++ b/spring-boot/09-spring-security-db-authentication/src/main/resources/config/application-dev.properties @@ -0,0 +1,33 @@ +# This file contains settings used during development. +# If using Maven to run, try the following command: +# mvn spring-boot:run -Dspring-boot.run.profiles=dev + +# Web related settings + +# Disable caching for static resources +spring.web.resources.cache.period=0 +spring.thymeleaf.cache=false + +# Optional: Tell DevTools to watch changes but never restart the backend server for CSS +spring.devtools.restart.exclude=static/**,public/**,templates/** + + +# Database related settings + +spring.datasource.url=jdbc:postgresql://localhost:5432/springboot +spring.datasource.username=springboot +spring.datasource.password=abc123 + +# Create/update/drop database tables automatically? +# In production, setting value to none is better. +# Possible values: none, validate, update, create, create-drop +spring.jpa.hibernate.ddl-auto=create-drop + +# Print sql that gets executed. Good for developers. Set to false in production. +spring.jpa.show-sql=true + +# Always execute initialization scripts (resources/schema.sql, resources/data.sql) on startup +spring.sql.init.mode=always + +# Data source initialization scripts (schema.sql and data.sql) are executed after Hibernate/JPA auto-creates database tables. +spring.jpa.defer-datasource-initialization=true |
