Skip to content

Commit

Permalink
Merge pull request #14 from Gamegoo-repo/feat/13
Browse files Browse the repository at this point in the history
[Feat/13] application.yml ์„ค์ • ์ถ”๊ฐ€
  • Loading branch information
rimi3226 authored Mar 27, 2024
2 parents 2ba27ee + a4d0480 commit e2cda97
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
12 changes: 9 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,28 @@ repositories {
}

dependencies {
//implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
//implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springdoc:springdoc-openapi-ui:1.6.11'
implementation 'org.springframework.boot:spring-boot-starter-validation'

compileOnly 'org.projectlombok:lombok'
//runtimeOnly 'com.mysql:mysql-connector-j'
annotationProcessor 'org.projectlombok:lombok'

runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'

testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'

implementation group: 'org.mariadb.jdbc', name: 'mariadb-java-client', version: '10.11.6'
//implementation group: 'org.mariadb.jdbc', name: 'mariadb-java-client', version: '10.11.6'

}

tasks.named('test') {
useJUnitPlatform()
}

jar {
enabled = false
}
1 change: 0 additions & 1 deletion src/main/resources/application.properties

This file was deleted.

19 changes: 19 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
spring:
datasource:
driver-class-name: org.mariadb.jdbc.Driver
url: jdbc:mariadb://${DB_URL}
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
jpa:
hibernate:
ddl-auto: update
properties:
hibernate:
# show_sql: true
format_sql: true
database-platform: org.hibernate.dialect.MariaDB103Dialect

springdoc:
swagger-ui:
tags-sorter: alpha # alpha: ์•ŒํŒŒ๋ฒณ ์ˆœ ํƒœ๊ทธ ์ •๋ ฌ, method: HTTP Method ์ˆœ ์ •๋ ฌ
operations-sorter: alpha # alpha: ์•ŒํŒŒ๋ฒณ ์ˆœ ํƒœ๊ทธ ์ •๋ ฌ, method: HTTP Method ์ˆœ ์ •๋ ฌ

0 comments on commit e2cda97

Please sign in to comment.