Questions tagged [h2-console]

10 questions
7
votes
2 answers

H2-console in r2dbc-h2 driver

I am using R2DBC-H2 driver, and my UR.L is spring.r2dbc.url=r2dbc:h2:mem:///customer Using this configuration, SpringBoot starts fine, however, I can not access the h2-console. Does anybody know why, and how I can fix it?
GtdDev
  • 748
  • 6
  • 14
3
votes
0 answers

How to enable the H2 Database Console using Quarkus?

In Spring you would enable the H2 console with spring.h2.console.enabled=true Is it also possible to enable the console in Quarkus?
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
2
votes
1 answer

Spring Boot, Can't access h2-console when integrated with Spring Security

I'm writing a Spring-Boot project that uses Spring Security, and also I want to use the H2 database. I've got a problem when I access localhost:8080/h2-console, it keeps returning 403 (as I understand, it's from the Spring Security and I need to let…
Capmu
  • 35
  • 6
0
votes
0 answers

How to resolve a "Whitelabel Error Page" in Spring Boot

I have made a "Pets" application using Model View Controller (MVC) Design Pattern in Gradle, with Spring Boot 3 framework, Thymeleaf template engine, in-memory H2 database with JPA, and Post-Redirect-Get design pattern. The program imitates a simple…
0
votes
1 answer

Can't setup the permitAll() mather

I try to setup endpoint /h2-console for permitAll() to get access to the h2-console without login. My security config: @Configuration public class SecurityConfig { @Bean public BCryptPasswordEncoder bCryptPasswordEncoder() { return…
Valentyn Hruzytskyi
  • 1,772
  • 5
  • 27
  • 59
0
votes
1 answer

H2 console not loading, with error No Javascript

getting Error loading h2 console localhost:8080/h2-console showing following text Welcome to H2 No Javascript If you are not automatically redirected to the login page, then Javascript is currently disabled or your browser does not support…
Rohan Jain
  • 77
  • 3
0
votes
0 answers
0
votes
1 answer

how H2 in intellij without installed H2

i'm army army computer can install intellij, but can not install H2. test need h2 or other database program. i wish know h2 use with 'localhost:8080/h2-console' thank you for read. 2023-01-05T23:47:23.106+09:00 INFO 6156 --- \[ restartedMain\]…
0
votes
1 answer

Getting exception on connecting Jakarta EE project to H2 database

I'm trying to connect my Jakarta EE 9.1.0 project to H2 database but I get this exception: org.h2.jdbc.JdbcSQLNonTransientConnectionException: Duplicate property "USER" [90066-212] Here is my persistance.xml file (version="3.0") persistence-unit…
Mehdi Rahimi
  • 1,453
  • 5
  • 20
  • 31
0
votes
1 answer

Spring Boot is not initializing data on startup with Spring JDBC getting errors on writing queries in a data.sql file

I am learning Spring Framework from online tutorials. In the tutorial, the instructor is using Spring JDBC and the H2 database and a data.sql file to populate tables. He also changed the dialect from "General SQL" to "MySQL" dialect as we are going…