I fixed this in my project by add a username and password in application.properties. Before that the setting of spring.datasource.username and spring.datasource.password are empty.