Aggiungi createDatabaseIfNotExist=true all’URL JDBC per creare automaticamente lo schema. Configura anche driver, dialetto e proprietà JPA ddl-auto.
jdbc:mysql://localhost:3306/dbname?createDatabaseIfNotExist=truespring.jpa.hibernate.ddl-auto=update
spring.datasource.driverClassName=com.mysql.jdbc.Driver