Skip to content

Commit

Permalink
Merge pull request #83 from pjhcsols/BE_5
Browse files Browse the repository at this point in the history
[main⬅🚀BE_5]: JPA 최적화 | Fetch Join 기반 Product 단건 조회 및 업데이트 성능 개선 | Kafka 기반 결제 처리 & JWT 인증 시스템 고도화 [박한솔]
  • Loading branch information
pjhcsols authored Feb 22, 2025
2 parents 818198b + 2859496 commit d67ca44
Show file tree
Hide file tree
Showing 189 changed files with 4,719 additions and 3,453 deletions.
17 changes: 10 additions & 7 deletions basilium-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ repositories {
dependencies {
//import
implementation group: 'com.github.iamport', name: 'iamport-rest-client-java', version: '0.2.22'
/*
implementation group: 'com.squareup.retrofit2', name: 'adapter-rxjava2', version: '2.9.0'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
implementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '4.9.3'
implementation group: 'com.squareup.retrofit2', name: 'converter-gson', version: '2.3.0'
*/

//spring
implementation 'org.springframework.boot:spring-boot-starter-web'
Expand All @@ -37,8 +31,13 @@ dependencies {
testImplementation 'org.springframework.boot:spring-boot-starter-test'

//mysql
//db CustomDatabaseHealthIndicator
//implementation 'org.springframework.boot:spring-boot-starter-actuator'

//implementation 'com.mysql:mysql-connector-java'
runtimeOnly 'com.mysql:mysql-connector-j'
//runtimeOnly 'mysql:mysql-connector-java'
//runtimeOnly 'mysql:mysql-connector-java:8.0.32'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
compileOnly 'org.projectlombok:lombok'
Expand Down Expand Up @@ -72,7 +71,7 @@ dependencies {
implementation 'software.amazon.awssdk:s3:2.17.84' // 사용하고자 하는 AWS SDK 버전에 맞게 변경

//rabbit mq
implementation 'org.springframework.boot:spring-boot-starter-amqp'
//implementation 'org.springframework.boot:spring-boot-starter-amqp'
//implementation 'org.springframework.boot:spring-boot-starter-scheduling:3.2.3'
runtimeOnly 'com.h2database:h2'

Expand All @@ -82,6 +81,10 @@ dependencies {
//sse
implementation 'com.fasterxml.jackson.core:jackson-databind' // 필요한 경우
developmentOnly 'org.springframework.boot:spring-boot-devtools' // 개발 환경에서 사용

//p6spy : 실제 실행되는 쿼리(배치 쿼리 포함)를 로그
implementation 'p6spy:p6spy:3.9.1'
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.9.1'
}

ext {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package basilium.basiliumserver;

import javax.sql.DataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignAutoConfiguration;
import org.springframework.context.annotation.Bean;
Expand All @@ -18,20 +21,28 @@
//위 스케줄링
@EnableFeignClients
@SpringBootApplication
@ConfigurationPropertiesScan("basilium.basiliumserver.properties")
@ImportAutoConfiguration({FeignAutoConfiguration.class})
public class BasiliumServerApplication {

private static final Logger logger = LoggerFactory.getLogger(BasiliumServerApplication.class);

public static void main(String[] args) {
SpringApplication.run(BasiliumServerApplication.class, args);

}

@Bean
public ApplicationRunner initializeDatabase(DataSource dataSource) {
return args -> {
ResourceDatabasePopulator populator = new ResourceDatabasePopulator(
new ClassPathResource("data.sql"));
populator.execute(dataSource);
try {
ResourceDatabasePopulator populator = new ResourceDatabasePopulator(
new ClassPathResource("data.sql"));
populator.execute(dataSource);
logger.info("Database initialized successfully");
} catch (Exception e) {
logger.error("Database initialization failed: {}", e.getMessage());
logger.error("Exception stack trace: ", e);
}
};
}

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit d67ca44

Please sign in to comment.