I am building a brand new application with Grails 4 and I am trying to look at my database as I make changes to the application, but I am not able to access the h2 database with the usual URL http://localhost:8080/dbconsole
.
I have looked at the documentation and under "4.4.4 Database Console" it says that I should be able to access it using the above URL. It also says that it is enabled by default, which leads me to more confusion.
I have not changed anything in my application.yml
after creating the app and I have only created one domain class and that is the only thing I have changed. I have also tried changing the serverURL
as mentioned in 4.4.4 in the documentation, but I have changed that back to the default.
Here is my datasource
and dev environment
from application.yml
dataSource:
pooled: true
jmxExport: true
driverClassName: org.h2.Driver
username: sa
password: ''
environments:
development:
dataSource:
dbCreate: create-drop
url: jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE