Spring Boot – Spring Data JPA with Hibernate and H2 Web Console

You may also like...

Leave a Reply

4 Comments on "Spring Boot – Spring Data JPA with Hibernate and H2 Web Console"

avatar
  Subscribe  
newest oldest
Notify of
chandu sekhar
Guest
chandu sekhar

could you please tell me how the data is inserted into db without performing any operation from ourside? and one more thing is i got an error that table not found exception

chandu sekhar
Guest
chandu sekhar

JdbcSQLException: Table “TBL_BOOK” not found; SQL statement:
INSERT INTO tbl_book (id, name, price) VALUES

Coli
Guest
Coli

This only works if the entities are in the same package (or in a sub-package) than the one of the class Application.
If not, the annotation @EntityScan must be used in the class Application.

Coli
Guest
Coli

This only works if the entities are in the same package (or in a sub-package) than the one of the class Application.
If not, the annotation @EntityScan must be used in the class Application.