In my case, the dependency I had used for mysql, with Spring 6.x.x was incorrect.
Worked after adding:
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<scope>runtime</scope>
</dependency>