From ae4b41b6cbb801812dcf9345afcfc80d262a3441 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Thu, 16 Jul 2026 02:45:15 +0000 Subject: [PATCH] =?UTF-8?q?=EB=B6=84=EC=84=9D=20=EA=B2=B0=EA=B3=BC?= =?UTF-8?q?=EB=A5=BC=20=EA=B8=B0=EB=B0=98=EC=9C=BC=EB=A1=9C=20Spring=20?= =?UTF-8?q?=EC=A0=84=ED=99=98=20=EC=B2=B4=ED=81=AC=EB=A6=AC=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EC=9E=91=EC=84=B1=20(E2E-MINIMAX-DEV-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.yml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 spring-migration/src/main/resources/application.yml diff --git a/spring-migration/src/main/resources/application.yml b/spring-migration/src/main/resources/application.yml new file mode 100644 index 0000000..1f5166a --- /dev/null +++ b/spring-migration/src/main/resources/application.yml @@ -0,0 +1,75 @@ +# Spring Boot Application Configuration +# Spring Boot 전환 후 application.properties → application.yml 변환 예시 + +spring: + application: + name: spring-migration-sample + + # H2 Database Configuration (Development) + datasource: + url: jdbc:h2:mem:sampledb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE + driver-class-name: org.h2.Driver + username: sa + password: + + # JPA/Hibernate Configuration + jpa: + hibernate: + ddl-auto: create-drop + show-sql: true + properties: + hibernate: + format_sql: true + dialect: org.hibernate.dialect.H2Dialect + + # H2 Console (Development only) + h2: + console: + enabled: true + path: /h2-console + +# Server Configuration +server: + port: 8080 + servlet: + context-path: / + +# Actuator Configuration +management: + endpoints: + web: + exposure: + include: health,info,metrics + endpoint: + health: + show-details: when_authorized + +# Logging Configuration +logging: + level: + root: INFO + com.example.migration: DEBUG + org.springframework.web: DEBUG + org.hibernate.SQL: DEBUG + +--- +# Production Profile +spring: + config: + activate: + on-profile: prod + datasource: + url: jdbc:h2:file:./data/sampledb;DB_CLOSE_DELAY=-1 + username: ${DB_USERNAME:sa} + password: ${DB_PASSWORD:} + jpa: + hdl-auto: validate + show-sql: false + h2: + console: + enabled: false + +logging: + level: + root: WARN + com.example.migration: INFO