fix(deploy): use in-memory H2 for learn profile to avoid file lock on service startup

This commit is contained in:
likingcode
2026-03-10 07:02:05 +08:00
parent 3330cd6e8d
commit c232a66d49

View File

@@ -3,6 +3,14 @@ spring:
config:
activate:
on-profile: learn
datasource:
url: jdbc:h2:mem:springboot_scaffold_learn;MODE=MYSQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
driver-class-name: org.h2.Driver
username: sa
password:
h2:
console:
enabled: true
app:
profile: learn