utiliser une base H2 persistée avec Spring boot
Bonjour,
Je souhaite utiliser une base embarquée H2 avec Spring boot en fichier, mais je ne trouve pas de fichiers après l'exécution.
J'ai configuré la base ainsi dans mon fichier application.properties
[qote]
# JPA Hibernate
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update
# H2
spring.datasource.url=jdbc:h2:file:./local/database.h2
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=password
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.h2.console.enabled=true
[/qote]
Où Spring va-t-il créer les fichiers ?
Là je ne retrouve rien
Est-ce qu'il faut faire un "ewxcute.shutdown" comme en jdbc ?
Et si oui, faut ut-il utiliser un listner sur la fermeture de l'application ?
Cordialement