Skip to content

Commit

Permalink
Fix : R2DBC 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunw9 committed Jul 16, 2024
1 parent bb95acc commit 5a09b43
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 46 deletions.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dependencies {
implementation 'org.postgresql:postgresql'

// Spring Data JPA
// implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'

// Lombok
compileOnly 'org.projectlombok:lombok'
Expand All @@ -59,6 +59,8 @@ dependencies {
implementation 'org.postgresql:r2dbc-postgresql:1.0.2.RELEASE'
implementation 'org.springframework.boot:spring-boot-starter-data-r2dbc'
implementation 'org.springframework.boot:spring-boot-starter-webflux'

implementation "com.github.jasync-sql:jasync-r2dbc-mysql:2.2.0"
}


Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/sopt/gptapi/GptApiApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.sql.init.SqlInitializationAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.data.r2dbc.config.EnableR2dbcAuditing;

@SpringBootApplication
@EnableConfigurationProperties(PromptProperty.class)
@AutoConfigureBefore({ DataSourceAutoConfiguration.class, SqlInitializationAutoConfiguration.class })
@EnableR2dbcAuditing
public class GptApiApplication {

public static void main(String[] args) {
Expand Down
45 changes: 0 additions & 45 deletions src/main/java/org/sopt/gptapi/config/R2dbcConfig.java

This file was deleted.

0 comments on commit 5a09b43

Please sign in to comment.