스프링부트에서 사용하는 파일이다.

application.properties로 늘려서 작성했다면 이렇다:

spring.application.name=community-spring

spring.datasource.url=jdbc:postgresql://localhost:5432/community_spring
spring.datasource.username=postgres
spring.datasource.password=postgres

# Flyway owns the schema. Hibernate must never touch DDL.
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.open-in-view=false

spring.flyway.enabled=true
spring.flyway.locations=classpath:db/migration

# Spring Boot 4 / Java 21 — each request runs on a virtual thread.
spring.threads.virtual.enabled=true

server.port=8080

logging.level.org.hibernate.SQL=debug
logging.level.org.hibernate.orm.jdbc.bind=trace

management.endpoints.web.exposure.include=health

spring.jpa.hibernate.ddl-auto는 update가 아닌 validate로 설정한다. 이것이 Flyway가 스키마를 통제하게 만든다. Hibernateㅇ는 DDL을 생성하는 것에서 금지된다.

User의 password는 PHP XpressEngine을 사용하던 때의 전유물 때문에 xe_pw_hash로 저당된다.