fix(h2): honor spring.datasource settings and preserve proxy-aware H2 console redirects

This commit is contained in:
likingcode
2026-03-10 09:30:08 +08:00
parent 4784f89942
commit 76a243b2de
2 changed files with 80 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ server.forward-headers-strategy=framework
spring.profiles.active=${APP_PROFILE:learn}
# H2 Database (default for learning)
# H2 Database (default baseline; learn profile overrides to in-memory)
spring.h2.console.enabled=true
spring.datasource.url=jdbc:h2:file:~/h2/springboot_scaffold
spring.datasource.driverClassName=org.h2.Driver