amigoscode / microservices

https://www.amigoscode.com/courses/microservices
513 stars 456 forks source link

Does not create customer table automatically #3

Open erguluur opened 2 years ago

erguluur commented 2 years ago

Even when i change to ddl-auto: create-drop, it does not create customer table in the application startup

nurullahsakar commented 2 years ago

if your application properly connect to the DB, please check the structure of your application.yml (care about spaces and tabs). For example in IntelliJ, create-drop keywork have to be in yellow

niravvarma commented 2 years ago

I also faced the same issue. Yup, it has to do with formatting of the YAML file. I just copied the file from the repo and then it worked.

DmitriKonnovNN commented 2 years ago

Hello everyone! This is an simplified solution (ONLY for POSTGRES running within docker container):

b) If you'd want to have several DB initialised:

I just want make it clear. This is a database initialisation and not pre-population.