From e3d9694b01a9786a6fffd886d7575491de52c3d5 Mon Sep 17 00:00:00 2001 From: geniy Date: Wed, 19 Feb 2025 18:48:28 +0300 Subject: [PATCH] release/2025-02-19-18-48 --- pom.xml | 4 ++++ src/main/resources/application.yml | 38 +++++++++++------------------- 2 files changed, 18 insertions(+), 24 deletions(-) diff --git a/pom.xml b/pom.xml index 85d913d..ad366b3 100644 --- a/pom.xml +++ b/pom.xml @@ -56,6 +56,10 @@ org.springframework.boot spring-boot-starter-security + + org.postgresql + postgresql + \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index c6bfd72..44f3faf 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,28 +1,18 @@ +server: + port: 80 spring: - - datasource: - url: jdbc:h2:mem:testdb - - h2: - console: - #enabled: false - enabled: true - jpa: - #generate-ddl: false - generate-ddl: true - - hibernate: - #ddl-auto: none - ddl-auto: create-drop - - # Показываем запросы + database: POSTGRESQL show-sql: true + #defer-datasource-initialization: true + defer-datasource-initialization: false + hibernate: + ddl-auto: validate + #ddl-auto: create + datasource: + platform: postgres + url: jdbc:postgresql://localhost:5432/postgres?currentSchema=infinity_stack + username: postgres + password: MobileDev + driverClassName: org.postgresql.Driver - # Своевременный запуск data.sql - defer-datasource-initialization: true - - spring-doc: - swagger-ui: - path: /swagger-ui.html - operationsSorter: method \ No newline at end of file