2025-08-15 00:53:17 +09:00
|
|
|
# ========================================
|
|
|
|
# 기본 애플리케이션 설정
|
|
|
|
# ========================================
|
2025-08-08 13:26:09 +09:00
|
|
|
server.port=8080
|
|
|
|
server.servlet.context-path=/service
|
|
|
|
spring.application.name=bio_backend
|
2025-08-15 00:53:17 +09:00
|
|
|
spring.output.ansi.enabled=always
|
|
|
|
|
|
|
|
# ========================================
|
|
|
|
# 개발 도구 설정
|
|
|
|
# ========================================
|
2025-08-08 13:26:09 +09:00
|
|
|
spring.devtools.livereload.enabled=true
|
|
|
|
spring.devtools.restart.additional-paths=src/main/java
|
|
|
|
|
2025-08-15 00:53:17 +09:00
|
|
|
# ========================================
|
|
|
|
# 데이터베이스 설정
|
|
|
|
# ========================================
|
2025-08-11 09:20:35 +09:00
|
|
|
spring.datasource.url=jdbc:postgresql://stam.kr:15432/imas
|
|
|
|
spring.datasource.username=imas_user
|
|
|
|
spring.datasource.password=stam1201
|
2025-08-08 13:26:09 +09:00
|
|
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
2025-08-22 09:09:21 +09:00
|
|
|
# 운영 환경 변수 설정 필요
|
|
|
|
# spring.datasource.url=${DB_URL:}
|
|
|
|
# spring.datasource.username=${DB_USERNAME:}
|
|
|
|
# spring.datasource.password=${DB_PASSWORD:}
|
2025-08-08 13:26:09 +09:00
|
|
|
|
2025-08-15 00:53:17 +09:00
|
|
|
# ========================================
|
2025-08-08 13:26:09 +09:00
|
|
|
# JPA/Hibernate 설정
|
2025-08-15 00:53:17 +09:00
|
|
|
# ========================================
|
2025-08-22 09:09:21 +09:00
|
|
|
# 개발 환경 설정
|
2025-08-11 09:20:35 +09:00
|
|
|
spring.jpa.hibernate.ddl-auto=none
|
2025-08-15 00:53:17 +09:00
|
|
|
spring.jpa.open-in-view=false
|
2025-08-11 09:20:35 +09:00
|
|
|
spring.jpa.show-sql=false
|
2025-08-08 13:26:09 +09:00
|
|
|
spring.jpa.properties.hibernate.format_sql=true
|
2025-08-11 09:20:35 +09:00
|
|
|
spring.jpa.properties.hibernate.highlight_sql=true
|
|
|
|
spring.jpa.properties.hibernate.use_sql_comments=false
|
2025-08-15 00:53:17 +09:00
|
|
|
|
2025-08-22 09:09:21 +09:00
|
|
|
# 배치 처리 설정
|
|
|
|
spring.jpa.properties.hibernate.default_batch_fetch_size=100
|
|
|
|
spring.jpa.properties.hibernate.jdbc.batch_size=100
|
|
|
|
spring.jpa.properties.hibernate.order_inserts=true
|
|
|
|
spring.jpa.properties.hibernate.order_updates=true
|
|
|
|
|
2025-08-15 00:53:17 +09:00
|
|
|
# 스키마 생성 설정
|
|
|
|
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
|
|
|
|
|
|
|
|
# ========================================
|
|
|
|
# 로그 레벨 설정
|
|
|
|
# ========================================
|
|
|
|
# 전체 애플리케이션 기본 로그 레벨
|
|
|
|
logging.level.root=INFO
|
|
|
|
|
|
|
|
# 프로젝트 패키지 로그 레벨
|
|
|
|
logging.level.com.bio.bio_backend=DEBUG
|
|
|
|
|
|
|
|
# 세부 패키지별 로그 레벨
|
|
|
|
logging.level.com.bio.bio_backend..*.controller=INFO
|
|
|
|
logging.level.com.bio.bio_backend..*.service=DEBUG
|
|
|
|
logging.level.com.bio.bio_backend..*.repository=DEBUG
|
|
|
|
logging.level.com.bio.bio_backend.global.aop=DEBUG
|
|
|
|
logging.level.com.bio.bio_backend.global.filter=INFO
|
|
|
|
|
|
|
|
# JPA/Hibernate 로깅
|
2025-08-11 09:20:35 +09:00
|
|
|
logging.level.org.hibernate.SQL=DEBUG
|
|
|
|
logging.level.org.hibernate.orm.jdbc.bind=TRACE
|
2025-08-15 00:53:17 +09:00
|
|
|
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
|
2025-08-11 09:20:35 +09:00
|
|
|
logging.level.org.springframework.data.jpa=DEBUG
|
2025-08-15 00:53:17 +09:00
|
|
|
logging.level.org.springframework.orm.jpa=INFO
|
|
|
|
logging.level.org.springframework.transaction=DEBUG
|
2025-08-11 09:20:35 +09:00
|
|
|
|
2025-08-15 00:53:17 +09:00
|
|
|
# Spring Framework 로깅
|
|
|
|
logging.level.org.springframework.web=WARN
|
|
|
|
logging.level.org.springframework.web.servlet.DispatcherServlet=WARN
|
|
|
|
logging.level.org.springframework.security=INFO
|
2025-08-12 15:00:12 +09:00
|
|
|
|
2025-08-11 09:20:35 +09:00
|
|
|
|
2025-08-15 00:53:17 +09:00
|
|
|
# ========================================
|
|
|
|
# 로그 패턴 설정
|
|
|
|
# ========================================
|
|
|
|
logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
|
|
|
|
logging.pattern.file=%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
|
2025-08-08 13:26:09 +09:00
|
|
|
|
2025-08-15 00:53:17 +09:00
|
|
|
# ========================================
|
|
|
|
# P6Spy 설정 (SQL 로깅)
|
|
|
|
# ========================================
|
|
|
|
decorator.datasource.p6spy.enable-logging=true
|
|
|
|
decorator.datasource.p6spy.log-format=%(sqlSingleLine)
|
2025-08-08 13:26:09 +09:00
|
|
|
|
2025-08-15 00:53:17 +09:00
|
|
|
# ========================================
|
|
|
|
# JWT 설정
|
|
|
|
# ========================================
|
2025-08-20 16:35:35 +09:00
|
|
|
token.expiration_time_access=900000
|
2025-08-25 11:25:45 +09:00
|
|
|
token.expiration_time_refresh=86400000
|
2025-08-20 16:35:35 +09:00
|
|
|
token.secret_key=c3RhbV9qd3Rfc2VjcmV0X3Rva2Vuc3RhbV9qd3Rfc2VjcmV0X3RhbV9qd3Rfc2VjcmV0X3RhbV9qd3Rfc2VjcmV0X3Rva2Vu
|
2025-08-22 09:09:21 +09:00
|
|
|
# 운영 환경 변수 설정 필요
|
|
|
|
# token.secret_key=${JWT_SECRET_KEY:}
|
|
|
|
|
|
|
|
|
2025-08-12 08:46:55 +09:00
|
|
|
|
2025-08-15 00:53:17 +09:00
|
|
|
# ========================================
|
2025-08-13 13:53:15 +09:00
|
|
|
# Swagger 설정
|
2025-08-15 00:53:17 +09:00
|
|
|
# ========================================
|
2025-08-13 13:53:15 +09:00
|
|
|
springdoc.api-docs.path=/api-docs
|
|
|
|
springdoc.swagger-ui.path=/swagger-ui.html
|
|
|
|
springdoc.swagger-ui.operationsSorter=method
|
|
|
|
springdoc.swagger-ui.tagsSorter=alpha
|
|
|
|
springdoc.swagger-ui.doc-expansion=none
|
|
|
|
springdoc.swagger-ui.disable-swagger-default-url=true
|
2025-08-14 10:50:38 +09:00
|
|
|
springdoc.default-produces-media-type=application/json
|
2025-08-22 00:58:15 +09:00
|
|
|
springdoc.default-consumes-media-type=application/json
|
|
|
|
|
|
|
|
# ========================================
|
|
|
|
# 보안 설정 - 허용할 경로
|
|
|
|
# ========================================
|
2025-08-22 16:56:52 +09:00
|
|
|
security.permit-all-paths=/login,/members/register,/swagger-ui/**,/swagger-ui.html,/swagger-ui/index.html,/api-docs,/api-docs/**,/v3/api-docs,/v3/api-docs/**,/ws/**
|