[QueryDSL 세팅 및 전체 구조 세팅]

This commit is contained in:
2025-08-11 09:20:35 +09:00
parent a21d9909ec
commit 544cec0e81
7 changed files with 94 additions and 9 deletions

View File

@@ -9,9 +9,9 @@ spring.devtools.restart.additional-paths=src/main/java
# 데이터베이스 연결 정보
# URL 형식: jdbc:postgresql://[호스트명]:[포트번호]/[데이터베이스명]
spring.datasource.url=jdbc:postgresql://stam.kr:15432/mms
spring.datasource.username=mms_user
spring.datasource.password=tam1201
spring.datasource.url=jdbc:postgresql://stam.kr:15432/imas
spring.datasource.username=imas_user
spring.datasource.password=stam1201
spring.datasource.driver-class-name=org.postgresql.Driver
# JPA/Hibernate 설정
@@ -21,13 +21,26 @@ spring.datasource.driver-class-name=org.postgresql.Driver
# - update: 엔티티 변경 시 스키마 업데이트 (개발용)
# - validate: 엔티티와 스키마 일치 여부만 검증 (운영용)
# - none: 아무 작업도 하지 않음
spring.jpa.hibernate.ddl-auto=update
spring.jpa.hibernate.ddl-auto=none
spring.jpa.properties.javax.persistence.schema-generation.scripts.action=create
spring.jpa.properties.javax.persistence.schema-generation.scripts.create-target=ddl/schema.sql
spring.jpa.properties.hibernate.hbm2ddl.schema-generation.script.append=false
# SQL 쿼리를 콘솔에 표시
spring.jpa.show-sql=true
# Hibernate가 SQL을 포맷하여 보여줌
# Hibernate log
spring.jpa.show-sql=false
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.highlight_sql=true
spring.jpa.properties.hibernate.use_sql_comments=false
logging.level.org.hibernate.SQL=DEBUG
logging.level.org.hibernate.orm.jdbc.bind=TRACE
logging.level.org.springframework.data.jpa=DEBUG
# P6Spy
decorator.datasource.p6spy.enable-logging=true
decorator.datasource.p6spy.log-format=%(sqlSingleLine)
# CONSOLE
spring.output.ansi.enabled=always
# HikariCP 연결 풀 크기 설정 (선택사항)
# spring.datasource.hikari.maximum-pool-size=10