spring:
h2:
console:
enabled: true
path: /h2
datasource:
url: jdbc:h2:mem:test
jpa:
hibernate:
ddl-auto: create // 스키마 자동 생성
show-sql: true // SQL 쿼리 출력
properties:
hibernate:
format_sql: true // SQL pretty print
sql:
init:
data-locations: classpath*:db/h2/data.sql
logging:
level:
org:
springframework:
orm:
jpa: DEBUG // logging level 설정
server:
servlet:
encoding:
force-response: true // response body 응답 데이터에 포함된 한글이 깨질 경우
'IT 정보 > Spring' 카테고리의 다른 글
[Spring] 스프링 AOP (Spring AOP)란 무엇인가? 프록시 기반 AOP, @AOP (4) | 2025.04.15 |
---|---|
[Spring] @RestControllerAdvice & @ControllerAdvice (1) | 2024.12.12 |
[Spring] build.gradle 설정 (0) | 2022.08.18 |
[Spring] API 문서화 (16) | 2022.07.18 |
[Spring] 스프링 MVC 정리 (1) (10) | 2022.07.16 |