Skip to content

Commit

Permalink
chore : jpa, mysql 의존성 추가
Browse files Browse the repository at this point in the history
 (CC-90)
  • Loading branch information
j2noo committed Jul 30, 2024
1 parent 8a3e444 commit 11c71e1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ dependencies {
//AWS Parameter Store
implementation platform("io.awspring.cloud:spring-cloud-aws-dependencies:3.1.0")
implementation 'io.awspring.cloud:spring-cloud-aws-starter-parameter-store'

//DB
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
runtimeOnly 'com.mysql:mysql-connector-j'
}

tasks.named('test') {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/softeer/caecae/S3Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class S3Controller {
@PostMapping("/api/s3")
public String upload(@RequestParam("file") MultipartFile file) {
String filePath = s3Service.uploadFile(file);
return filePath +"created!";
return filePath + "created!";
//TODO : ResponseEntity 생성하기

}
Expand Down
16 changes: 16 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
spring:
datasource:
url: jdbc:mysql://${DB_HOST}:${DB_PORT}/${DB_DATABASE}
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver

jpa:
hibernate:
ddl-auto: create
properties:
hibernate:
show_sql: true
format_sql: true
database-platform: org.hibernate.dialect.MySQLDialect
open-in-view: false

s3:
bucket: ${S3_BUCKET}
region:
Expand Down

0 comments on commit 11c71e1

Please sign in to comment.