0

this is my application.dev.properties

spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=create
datasource.dev.url=jdbc:mysql://localhost:3306/schema?autoReconnect=true&useSSL=false&createDatabaseIfNotExist=true
datasource.dev.username=gdpr_root
datasource.dev.password=computer@1234
datasource.dev.driverClassName=com.mysql.jdbc.Drive

This is for common application.properties

props.hb.hibernate.default_batch_fetch_size=1000
props.hb.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
props.hb.hibernate.temp.use_jdbc_metadata_defaults=false
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=create

I have tried to add spring.jpa.hibernate.ddl-auto=create on both properties files. but not creating the table structure. i have followed below stack links

Unable to get spring boot to automatically create database schema

Auto creating tables failed in Spring JPA

expecting a better solution for my issue. Edit 1 schema will create but tables not created yet

arj
  • 887
  • 1
  • 15
  • 37
  • 3
    Judging from your config you are using multiple datasources, meaning manual configuration of those as well, which would probably also mean manual configuration of the entitymanager and thus the auto config options will not work. – M. Deinum Nov 16 '21 at 07:38
  • thanks @M.Deinum for the quick update – arj Nov 16 '21 at 08:37

0 Answers0