Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) #6

Open
geallen opened this issue Mar 12, 2022 · 1 comment

Comments

@geallen
Copy link

geallen commented Mar 12, 2022

Hi, When I try to run project from terminal with comment mvn clean spring-boot:run
I got this exception. I searched on the net but could not work anything, do you have this problem too ?
o.s.b.f.support.DisposableBeanAdapter : Invocation of destroy method failed on bean with name 'inMemoryDatabaseShutdownExecutor': org.h2.jdbc.JdbcSQLNonTransientConnectionException: Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-200]

@edorkacerja
Copy link

Hi, I had the same issue and after digging a bit deeper you need to add the spring starter web dependency to your pom.xml since we are trying to run a web app. That fixed my issue
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants