패키지 구조 수정 및 추가

This commit is contained in:
2026-04-08 16:30:28 +09:00
parent d99422d328
commit 49447c9065
24 changed files with 189 additions and 236 deletions

View File

@@ -0,0 +1,13 @@
package com.cd.detection;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DabeeoDetectionApiApplication {
public static void main(String[] args) {
SpringApplication.run(DabeeoDetectionApiApplication.class, args);
}
}

View File

@@ -0,0 +1,19 @@
package com.cd.detection.config;
import com.querydsl.jpa.impl.JPAQueryFactory;
import jakarta.persistence.EntityManager;
import jakarta.persistence.PersistenceContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class QuerydslConfig {
@PersistenceContext
private EntityManager entityManager;
@Bean
public JPAQueryFactory jpaQueryFactory() {
return new JPAQueryFactory(entityManager);
}
}

View File

@@ -0,0 +1,5 @@
spring:
datasource:
url: jdbc:postgresql://localhost:5432/dabeeo_detection_dev
username: dabeeo_detection
password: 1234

View File

@@ -0,0 +1,5 @@
spring:
datasource:
url: jdbc:postgresql://localhost:5432/dabeeo_detection_dev
username: dabeeo_detection
password: 1234

View File

@@ -0,0 +1,11 @@
spring:
profiles:
active: local
jpa:
hibernate:
ddl-auto: update
show-sql: true
properties:
hibernate:
format_sql: true