Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/dev_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 워크플로우 이름
name: MinKyu_Umc9th


on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

# 실행될 작업 정의
jobs:

build:
# OS 환경 지정
runs-on: ubuntu-latest

# 작업 단계들
steps:
# 1. 리포지토리 코드를 가져오기
- name: Checkout repository
uses: actions/checkout@v4

# 2. JDK 24 설치
- name: Set up JDK 24
uses: actions/setup-java@v4
with:
java-version: '24'
distribution: 'temurin'

# 3. gradlew 실행 권한 부여
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew

# 4. Gradle로 빌드 및 테스트 실행
- name: Build with Gradle
run: ./gradlew build
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ description = 'Demo project for Spring Boot'

java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
//languageVersion = JavaLanguageVersion.of(21)
languageVersion = JavaLanguageVersion.of(24)

}
}

Expand All @@ -25,6 +27,7 @@ repositories {
}

dependencies {
testImplementation 'com.h2database:h2'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
Expand Down
14 changes: 7 additions & 7 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ spring:
name: "umc_9th" # "umc9th"

datasource:
driver-class-name: com.mysql.cj.jdbc.Driver # MySQL JDBC ???? ??? ??
url: jdbc:mysql://localhost:3306/umc9th # jdbc:mysql://localhost:3306/{???????}
driver-class-name: com.mysql.cj.jdbc.Driver #
url: jdbc:mysql://localhost:3306/umc9th #
username: root # MySQL ?? ??
password: 1234 # MySQL ????

jpa:
database: mysql # ??? ?????? ?? ?? (MySQL)
database-platform: org.hibernate.dialect.MySQLDialect # Hibernate?? ??? MySQL ??(dialect) ??
show-sql: true # ??? SQL ??? ??? ???? ?? ??
database: mysql #
database-platform: org.hibernate.dialect.MySQLDialect #
show-sql: true #
hibernate:
ddl-auto: create # ?????? ?? ? ?????? ???? ??? ??
ddl-auto: create #
properties:
hibernate:
format_sql: true # ???? SQL ??? ?? ?? ???
format_sql: true #
11 changes: 11 additions & 0 deletions src/test/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
spring:
datasource:
url: jdbc:h2:mem:testdb
driver-class-name: org.h2.Driver
username: sa
password:

jpa:
database-platform: org.hibernate.dialect.H2Dialect
hibernate:
ddl-auto: create-drop