From f7e38affb45a7cc5f758ee450224cad03626db5f Mon Sep 17 00:00:00 2001 From: teddy Date: Wed, 12 Nov 2025 13:18:45 +0900 Subject: [PATCH] =?UTF-8?q?queryDSL,=20application=20=EC=84=A4=EC=A0=95,?= =?UTF-8?q?=20codestyle=20=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 12 ++++ build.gradle | 8 +++ src/main/resources/application.yml | 94 +++++++++++++++++++++++++++++- 3 files changed, 113 insertions(+), 1 deletion(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..5a2355ce --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.java] +max_line_length = 100 diff --git a/build.gradle b/build.gradle index 2a38701c..3d8296ed 100644 --- a/build.gradle +++ b/build.gradle @@ -36,6 +36,14 @@ dependencies { //geometry implementation 'com.fasterxml.jackson.core:jackson-databind' implementation 'org.locationtech.jts.io:jts-io-common:1.20.0' + + // QueryDSL JPA + implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta' + + // Q클래스 생성용 annotationProcessor + annotationProcessor 'com.querydsl:querydsl-apt:5.0.0:jakarta' + annotationProcessor 'jakarta.annotation:jakarta.annotation-api' + annotationProcessor 'jakarta.persistence:jakarta.persistence-api' } tasks.named('test') { diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 32ff8449..43b06d97 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1 +1,93 @@ -spring.application.name=kamco-back +spring: + application: + name: kamco-back + +server: + port: 8080 + +# ----------------------- +# local +# ----------------------- +--- +server: + port: 8080 + +spring: + config: + activate: + on-profile: local + datasource: + driver-class-name: org.postgresql.Driver + url: jdbc:postgresql://10.100.0.10:25432/temp + username: temp + password: temp123! + hikari: + minimum-idle: 10 + maximum-pool-size: 50 + jpa: + hibernate: + ddl-auto: none # 또는 update/create + show-sql: true + properties: + hibernate: + format_sql: true + +logging: + level: + root: DEBUG + +# ----------------------- +# dev +# ----------------------- +--- +server: + port: 3333 + +spring: + config: + activate: + on-profile: dev + datasource: + driver-class-name: org.postgresql.Driver + url: jdbc:postgresql://10.100.0.10:25432/temp + username: temp + password: temp123! + jpa: + hibernate: + ddl-auto: none # 또는 update/create + show-sql: true + properties: + hibernate: + format_sql: true + +logging: + level: + root: INFO + +# ----------------------- +# prod +# ----------------------- +--- +server: + port: 8080 + +spring: + config: + activate: + on-profile: prod + datasource: + driver-class-name: org.postgresql.Driver + url: jdbc:postgresql://10.100.0.10:25432/temp + username: temp + password: temp123! + jpa: + hibernate: + ddl-auto: none # 또는 update/create + show-sql: true + properties: + hibernate: + format_sql: true + +logging: + level: + root: WARN