H2.version

0 views
Skip to first unread message

Deandra Uleman

unread,
Aug 3, 2024, 4:06:55 PM8/3/24
to rerasbuckfif

However, when I ran my spring-boot application I got this error message "Connection is broken: "unexpected status 16843008", which I looked around and the root cause is due to different h2 jdbc versions.

I checked my spring-boot reference and it used (h2-1.3.176). So, I tried to updated the pom.xml of spring-boot. But there is a warning "Overriding managed version 1.3.176 for h2". Did clean install and it worked.

As you've seen, the warning is coming from Maven. Assuming you're using spring-boot-starter-parent as your pom's parent, you've inherited dependency management for com.h2database:h2. If you want to continue to use Spring Boot 1.1.x but without the warning from Maven, you can do so by overriding the h2.version property in your pom:

c80f0f1006
Reply all
Reply to author
Forward
0 new messages