File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ dependencies {
23
23
implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
24
24
implementation ' org.springframework.boot:spring-boot-starter-web'
25
25
implementation ' com.fasterxml.jackson.module:jackson-module-kotlin'
26
+ implementation ' org.springframework.boot:spring-boot-starter-actuator'
26
27
implementation ' org.jetbrains.kotlin:kotlin-reflect'
27
28
runtimeOnly ' org.postgresql:postgresql'
28
29
testImplementation ' org.springframework.boot:spring-boot-starter-test'
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class SpringKotlinPostgresDemoApplication {
13
13
@Bean
14
14
fun initializeDatabase (wordRepository : WordRepository ): CommandLineRunner {
15
15
return CommandLineRunner {
16
- wordRepository.save(WordEntity (word = " serverless salad infra pal world " ))
16
+ wordRepository.save(WordEntity (word = " Serverless Salad Infrapal World " ))
17
17
}
18
18
}
19
19
}
Original file line number Diff line number Diff line change 1
1
spring.datasource.url =${DB_URL}
2
2
spring.datasource.username =${DB_USERNAME}
3
3
spring.datasource.password =${DB_PASSWORD}
4
- spring.jpa.hibernate.ddl-auto =update
4
+ spring.jpa.hibernate.ddl-auto =update
5
+ management.endpoints.web.base-path =/
6
+ management.endpoints.web.exposure.include =health
You can’t perform that action at this time.
0 commit comments