<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/fix-spring-boot-h2-jdbcsqlsyntaxerrorexception-table-not-found--p5jfsodhp" -->

---
title: Fix Spring Boot H2 JdbcSQLSyntaxErrorException “Table...
description: Learn how to fix the H2 exception: JdbcSQLSyntaxErrorException: Table not found in Spring Boot by configuring the H2 database and deferring data initialization...
canonical: https://daily.dev/posts/fix-spring-boot-h2-jdbcsqlsyntaxerrorexception-table-not-found--p5jfsodhp
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Fix Spring Boot H2 JdbcSQLSyntaxErrorException “Table not found” | daily.dev
og:description: Learn how to fix the H2 exception: JdbcSQLSyntaxErrorException: Table not found in Spring Boot by configuring the H2 database and deferring data initialization...
og:url: https://daily.dev/posts/fix-spring-boot-h2-jdbcsqlsyntaxerrorexception-table-not-found--p5jfsodhp
og:image: https://api.daily.dev/og/posts/P5jFSODhP.png
og:image:alt: Fix Spring Boot H2 JdbcSQLSyntaxErrorException “Table not found”
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Fix Spring Boot H2 JdbcSQLSyntaxErrorException “Table not found”

**[Baeldung](https://daily.dev/sources/baeldung)** · 3 min read · 1 upvotes · 0 comments

## Summary

Learn how to fix the H2 exception: JdbcSQLSyntaxErrorException: Table not found in Spring Boot by configuring the H2 database and deferring data initialization after Hibernate initialization.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://feeds.feedblitz.com/~/895921016/0/baeldung~Fix-Spring-Boot-H-JdbcSQLSyntaxErrorException-Table-not-found>

---

Tags: [#java](https://daily.dev/tags/java), [#database](https://daily.dev/tags/database), [#spring-boot](https://daily.dev/tags/spring-boot)

[View this post on daily.dev](https://daily.dev/posts/fix-spring-boot-h2-jdbcsqlsyntaxerrorexception-table-not-found--p5jfsodhp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Fix Spring Boot H2 JdbcSQLSyntaxErrorException “Table not found”","url":"https://daily.dev/posts/fix-spring-boot-h2-jdbcsqlsyntaxerrorexception-table-not-found--p5jfsodhp","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/fix-spring-boot-h2-jdbcsqlsyntaxerrorexception-table-not-found--p5jfsodhp"},"datePublished":"2024-05-06T02:25:30.205Z","dateModified":"2024-05-09T09:28:18.744Z","description":"Learn how to fix the H2 exception: JdbcSQLSyntaxErrorException: Table not found in Spring Boot by configuring the H2 database and deferring data initialization...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/12905fc8b5e08fc88dae1ce1f16b2af3?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/12905fc8b5e08fc88dae1ce1f16b2af3?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Baeldung","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Baeldung","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/52cccfb454d946c4b7dfa5e816f9e576","url":"https://daily.dev/sources/baeldung"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/fix-spring-boot-h2-jdbcsqlsyntaxerrorexception-table-not-found--p5jfsodhp","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"java,database,spring-boot","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Baeldung","item":"https://daily.dev/sources/baeldung"},{"@type":"ListItem","position":3,"name":"Fix Spring Boot H2 JdbcSQLSyntaxErrorException “Table not found”"}]}
```

