lab-3 some configuration

This commit is contained in:
Zakharov_Rostislav 2024-04-17 14:32:24 +04:00
parent 63d63d3b39
commit addf626c2e
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,8 @@
# Dev H2 JPA Settings
spring.datasource.url=jdbc:h2:file:./data
spring.datasource.username=sa
spring.datasource.password=password
spring.datasource.driver-class-name=org.h2.Driver
# H2 console
spring.h2.console.enabled=true

View File

@ -0,0 +1,9 @@
# Logger settings
# Available levels are: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF
logging.level.com.example.demo=INFO
# Prod PostgreSQL JPA Settings
spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/demo-app
spring.datasource.username=postgres
spring.datasource.password=postgres
spring.datasource.driver-class-name=org.postgresql.Driver

View File

@ -1 +1,21 @@
# Server
spring.main.banner-mode=off
server.port=8080
# Logger settings
# Available levels are: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF
logging.level.com.example.demo=DEBUG
# Set default orofile
spring.profiles.default=dev
# Common JPA Settings
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.open-in-view=false
# spring.jpa.show-sql=true
# spring.jpa.properties.hibernate.format_sql=true
# Liquibase Settings
spring.liquibase.enabled=true
spring.liquibase.drop-first=false
spring.liquibase.change-log=classpath:db/changelog.xml