#16 board: vault

This commit is contained in:
haerong22
2023-01-27 01:04:28 +09:00
parent 08248e9673
commit 5f28a4c1fb
2 changed files with 24 additions and 1 deletions

View File

@@ -18,6 +18,10 @@ repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2021.0.5")
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-web'
@@ -32,6 +36,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.cloud:spring-cloud-starter-vault-config'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'mysql:mysql-connector-java'
compileOnly 'org.projectlombok:lombok'
@@ -45,11 +51,18 @@ dependencies {
implementation "com.querydsl:querydsl-jpa"
implementation "com.querydsl:querydsl-core"
implementation "com.querydsl:querydsl-collections"
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jpa" // querydsl JPAAnnotationProcessor 사용 지정
annotationProcessor "com.querydsl:querydsl-apt:5.0.0:jpa" // querydsl JPAAnnotationProcessor 사용 지정
annotationProcessor "jakarta.annotation:jakarta.annotation-api" // java.lang.NoClassDefFoundError (javax.annotation.Generated) 대응 코드
annotationProcessor "jakarta.persistence:jakarta.persistence-api" // java.lang.NoClassDefFoundError (javax.annotation.Entity) 대응 코드
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
tasks.named('test') {
useJUnitPlatform()
}

View File

@@ -8,6 +8,16 @@ logging:
org.hibernate.type.descriptor.sql.BasicBinder: trace
spring:
application:
name: board
cloud:
vault:
scheme: http
authentication: token
token: ${VAULT_TOKEN}
config:
import: vault://
datasource:
url: ${LOCAL_DB_URL}
username: ${LOCAL_DB_USERNAME}