79646657

Date: 2025-05-31 13:37:49
Score: 0.5
Natty:
Report link

Looks like more problems to connect to your database, not that it cannot connect to localhost. Try to add driver, looks like it's missing. Your error says "Failed to determine DatabaseDriver". Add "spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver".

Also pay attention to spring.jpa.hibernate.ddl-auto=update. Make sure, when you first time run application and want to create database for the first time to do spring.jpa.hibernate.ddl-auto=create. After its created, I normally change to spring.jpa.hibernate.ddl-auto=update and then the new modifications of database is updated during the further work.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ilze