From 021db753912c451b9d40e8afcb0f580b0895d72e Mon Sep 17 00:00:00 2001 From: "dmitriy.churmeev" Date: Wed, 1 Apr 2026 23:51:13 +0300 Subject: [PATCH] test value --- build.gradle | 6 ++---- src/main/kotlin/com/test/rest/TestController.kt | 5 ----- src/main/resources/application.yaml | 12 ++---------- 3 files changed, 4 insertions(+), 19 deletions(-) diff --git a/build.gradle b/build.gradle index 85ac6ec..afa9ec3 100644 --- a/build.gradle +++ b/build.gradle @@ -30,17 +30,15 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-oauth2-client' implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server' - //implementation 'org.keycloak:keycloak-spring-boot-starter' 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") - //implementation 'org.keycloak.bom:keycloak-adapter-bom:25.0.6' - //implementation("org.springframework.boot:spring-boot-starter-data-jpa") + implementation("org.springframework.boot:spring-boot-starter-data-jpa") //implementation("org.flywaydb:flyway-database-postgresql:10.10.0") - //runtimeOnly("org.postgresql:postgresql") + runtimeOnly("org.postgresql:postgresql") testImplementation 'org.springframework.boot:spring-boot-starter-test' diff --git a/src/main/kotlin/com/test/rest/TestController.kt b/src/main/kotlin/com/test/rest/TestController.kt index 68cc9e1..2a035f1 100644 --- a/src/main/kotlin/com/test/rest/TestController.kt +++ b/src/main/kotlin/com/test/rest/TestController.kt @@ -33,9 +33,4 @@ open class TestController { return "Home page" } - @GetMapping("/scret") - fun secret(): String { - return password.orEmpty() - } - } \ No newline at end of file diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index f0c9097..76da3c1 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -11,9 +11,9 @@ spring: # Datasource datasource: - url: jdbc:postgresql://postgres.my-spring-app-6b948f469d-gdw6q.svc.cluster.local:5432/app_db + url: jdbc:postgresql://192.168.2.101:5432/app_db username: postgres - password: postgres + password: ${SPRING_DATASOURCE_PASSWORD} driver-class-name: org.postgresql.Driver # JPA @@ -34,14 +34,6 @@ spring: jwt: issuer-uri: https://keycloak.dmitriy-churmeev.tech/realms/test_realm -# Для использования клиентской сессии -# client: -# registration: -# keycloak: -# client-id: test_client -# client-secret: jyO0RTH9dzPaschkpfjzwZ6WprTlMPZ6 -# redirect-uri: http://app.dmitriy-churmeev.tech/login/oauth2/code/keycloak - provider: keycloak: issuer-uri: https://keycloak.dmitriy-churmeev.tech/realms/test_realm