I have problem with hibernate.ddl-auto: none in spring. It works fine in development environment and does not execute sql's like drop table. But in production environment same property seems like it's not working. And execute drop and create tables sql's. In application.yaml on production:
spring:
jpa:
hibernate.ddl-auto: none
I checked this value in application by this:
@Bean
public CommandLineRunner initProject() {
return (args) -> {
logger.info(env.getProperty("spring.jpa.hibernate.ddl-auto")); //this prints "create"
So it looks like some internal code changed it value. I run application by this command:
./mvnw spring-boot:run