summaryrefslogtreecommitdiff
path: root/spring-boot/09-spring-security-db-authentication/src/main/resources/config/application-dev.properties
blob: 50973c7ae489cb5ff111b7047b4a854eb11978a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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