init source
This commit is contained in:
		
							
								
								
									
										34
									
								
								src/main/resources/application.properties
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								src/main/resources/application.properties
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,34 @@
 | 
			
		||||
server.port=8080
 | 
			
		||||
server.servlet.context-path=/service
 | 
			
		||||
spring.application.name=bio_backend
 | 
			
		||||
spring.devtools.livereload.enabled=true
 | 
			
		||||
#spring.devtools.restart.poll-interval=2000
 | 
			
		||||
# 추가로 감시할 경로 (자바 소스 폴더)
 | 
			
		||||
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.driver-class-name=org.postgresql.Driver
 | 
			
		||||
 | 
			
		||||
# JPA/Hibernate 설정
 | 
			
		||||
# ddl-auto: 엔티티(Entity)에 맞춰 데이터베이스 스키마를 자동 생성/업데이트합니다.
 | 
			
		||||
# - create: 애플리케이션 시작 시 기존 스키마를 삭제하고 새로 생성 (개발용)
 | 
			
		||||
# - create-drop: 시작 시 생성, 종료 시 삭제 (테스트용)
 | 
			
		||||
# - update: 엔티티 변경 시 스키마 업데이트 (개발용)
 | 
			
		||||
# - validate: 엔티티와 스키마 일치 여부만 검증 (운영용)
 | 
			
		||||
# - none: 아무 작업도 하지 않음
 | 
			
		||||
spring.jpa.hibernate.ddl-auto=update
 | 
			
		||||
 | 
			
		||||
# SQL 쿼리를 콘솔에 표시
 | 
			
		||||
spring.jpa.show-sql=true
 | 
			
		||||
 | 
			
		||||
# Hibernate가 SQL을 포맷하여 보여줌
 | 
			
		||||
spring.jpa.properties.hibernate.format_sql=true
 | 
			
		||||
 | 
			
		||||
# HikariCP 연결 풀 크기 설정 (선택사항)
 | 
			
		||||
# spring.datasource.hikari.maximum-pool-size=10
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user