简体   繁体   中英

Why spring-data-jpa is not creating tables in MS SQL server?

When I use in-memory(h2) database, spring-data-jpa is creating tables, but, when I change datasource to point to MS SQL (2017), I cannot see tables getting created.

Can anyone help me to solve this scenario?

Note: I'm using spring boot in my project

Make sure you configured: spring.jpa.hibernate.ddl-auto=update

It's hibernate how creates tables and not Spring Data JPA.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM