From 8c11b695d6fc7be448abedae7cc0f521d95a04d9 Mon Sep 17 00:00:00 2001 From: "dmitriy.churmeev" Date: Fri, 13 Mar 2026 13:13:11 +0300 Subject: [PATCH] change ci cd pipeline --- build.gradle | 8 +++++++- src/main/resources/application.yaml | 18 +++++++++--------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index fd02e95..8bf2c87 100644 --- a/build.gradle +++ b/build.gradle @@ -22,7 +22,13 @@ repositories { } dependencies { - implementation 'org.springframework.boot:spring-boot-starter-web' + implementation ('org.springframework.boot:spring-boot-starter-web') { + exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat' + } + implementation 'org.springframework.boot:spring-boot-starter-undertow' + + implementation 'org.springframework.boot:spring-boot-starter-security' + implementation 'com.fasterxml.jackson.module:jackson-module-kotlin' implementation 'org.jetbrains.kotlin:kotlin-reflect' implementation("org.springframework.boot:spring-boot-starter-actuator:3.5.7") diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 7e6992e..090e417 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -4,31 +4,31 @@ spring: application: name: app - # ??????????? ??????????? ? ???? ?????? + security: + user: + name: admin + password: pass + + # Datasource datasource: url: jdbc:postgresql://postgres.my-spring-app-6b948f469d-gdw6q.svc.cluster.local:5432/app_db username: postgres password: postgres driver-class-name: org.postgresql.Driver - # ????????? JPA + # JPA jpa: hibernate: - # ????????????? ???????/????????? ????? ???? ?????? (????? ?? ???????????? ? ?????) - ddl-auto: validate # ????????: none, validate, update, create, create-drop - # ???????? ??????????? SQL-???????? (???????????) + ddl-auto: validate show-sql: true - # ?????????????? SQL ? ????? properties: hibernate: format_sql: true database: postgresql database-platform: org.hibernate.dialect.PostgreSQLDialect - # ????????? Flyway + # Flyway flyway: enabled: true - # ???? ? ????????? (?? ?????????: classpath:db/migration) locations: classpath:db/migration - # ????????? ???????? ??? ?????? ?????????? baseline-on-migrate: true \ No newline at end of file