• Register

Share:- Whatsapp Facebook Facebook

------------------------------------- Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

Categories

0 votes
12 views
How to set properties in spring boot so that new tables does not create or drop ?
in Spring Boot by

1 Answer

0 votes

In spring boot application, We have to set following properties in spring boot that new tables does not create or drop.

application.properties file:-

spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.hibernate.ddl-auto=update
spring.datasource.driverClassName=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.username=test
spring.datasource.password=

by (3.3k points)
...