From 2ddfd132fbe61b8e2a84ba47e43c426a38fb65d1 Mon Sep 17 00:00:00 2001 From: essential2189 Date: Tue, 23 Jan 2024 01:12:47 +0900 Subject: [PATCH] chore: application.yml --- build.gradle | 3 +-- .../todaypopup/TodayPopupApplication.java | 1 - ...pplication-dev.yaml => application-dev.yml} | 3 --- ...{application.yaml => application-local.yml} | 8 +++----- src/main/resources/application.yml | 18 ++++++++++++++++++ 5 files changed, 22 insertions(+), 11 deletions(-) rename src/main/resources/{application-dev.yaml => application-dev.yml} (96%) rename src/main/resources/{application.yaml => application-local.yml} (91%) create mode 100644 src/main/resources/application.yml diff --git a/build.gradle b/build.gradle index 3e5fc8a..9791021 100644 --- a/build.gradle +++ b/build.gradle @@ -22,13 +22,12 @@ repositories { } dependencies { + implementation 'org.springframework.boot:spring-boot-starter-actuator' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' - implementation 'org.springframework.boot:spring-boot-starter-data-redis' implementation 'org.springframework.boot:spring-boot-starter-web' compileOnly 'org.projectlombok:lombok' developmentOnly 'org.springframework.boot:spring-boot-devtools' developmentOnly 'org.springframework.boot:spring-boot-docker-compose' - runtimeOnly 'com.h2database:h2' runtimeOnly 'com.mysql:mysql-connector-j' annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' annotationProcessor 'org.projectlombok:lombok' diff --git a/src/main/java/com/todaypopup/todaypopup/TodayPopupApplication.java b/src/main/java/com/todaypopup/todaypopup/TodayPopupApplication.java index 14bb91c..1270037 100644 --- a/src/main/java/com/todaypopup/todaypopup/TodayPopupApplication.java +++ b/src/main/java/com/todaypopup/todaypopup/TodayPopupApplication.java @@ -8,5 +8,4 @@ public class TodayPopupApplication { public static void main(String[] args) { SpringApplication.run(TodayPopupApplication.class, args); } - } diff --git a/src/main/resources/application-dev.yaml b/src/main/resources/application-dev.yml similarity index 96% rename from src/main/resources/application-dev.yaml rename to src/main/resources/application-dev.yml index 54ce7af..1938d99 100644 --- a/src/main/resources/application-dev.yaml +++ b/src/main/resources/application-dev.yml @@ -1,6 +1,3 @@ -server: - port: 8080 - spring: config: activate: diff --git a/src/main/resources/application.yaml b/src/main/resources/application-local.yml similarity index 91% rename from src/main/resources/application.yaml rename to src/main/resources/application-local.yml index 730d3ed..ffbc40c 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application-local.yml @@ -1,9 +1,7 @@ -server: - port: 8080 - spring: - profiles: - default: local + config: + activate: + on-profile: local datasource: driver-class-name: com.mysql.cj.jdbc.Driver diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..2bca913 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,18 @@ +server: + port: 8080 + +management: + endpoints: + health: + show-details: always + web: + base-path: / + path-mapping: + health: check_health + health: + disk-space: + enabled: false + +spring: + profiles: + default: local