Skip to content

Commit

Permalink
[feat & refactor] 폴더 등록 조회 API with h2 success #29
Browse files Browse the repository at this point in the history
  • Loading branch information
gdakate committed Mar 26, 2023
1 parent 71c3a79 commit 1a4a03a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ dependencies {
implementation group: 'org.springframework.cloud', name: 'spring-cloud-gcp-starter', version: '1.2.5.RELEASE'
implementation group: 'org.springframework.cloud', name: 'spring-cloud-gcp-storage', version: '1.2.5.RELEASE'
annotationProcessor 'org.projectlombok:lombok'
// runtimeOnly 'com.h2database:h2'
implementation 'mysql:mysql-connector-java'
runtimeOnly 'com.h2database:h2'
// implementation 'mysql:mysql-connector-java'
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class Folder {
private Long id;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "user_id", nullable = false)
@JoinColumn(name = "user_id")
private User userId;

@Column(nullable = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@AllArgsConstructor
public class FolderRequestDto {

private User userId;
private Long userId;
private String folderName;

}
21 changes: 18 additions & 3 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,23 @@ spring.cloud.gcp.storage.project-id=heroic-habitat-376713
spring.cloud.gcp.storage.bucket=leturn-file-bucket

#db
#spring.datasource.driver-class-name=
#spring.datasource.url=
#spring.datasource.username=
#spring.datasource.url=jdbc:mysql://localhost:3306/HighLight?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
#spring.datasource.username=root
#spring.datasource.password=
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

spring.datasource.url=jdbc:h2:mem:testdb
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=



# google login
google.auth.url=https://oauth2.googleapis.com/
google.login.url=https://accounts.google.com/
google.redirect.uri=http://localhost:8080/google/login/redirect
google.client.id=907385257015-gp3hqfll9khmcgm6lv3re3u5htqohuhr.apps.googleusercontent.com
google.secret=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
google.auth.scope=profile,email,openid

0 comments on commit 1a4a03a

Please sign in to comment.