estou tomando o seguinte erro :
Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]:
@SpringBootApplication public class SpringDataApplication implements CommandLineRunner {
private final CargoRepository repository;
public static void main(String[] args){
SpringApplication.run(SpringDataApplication.class,args);
}
public SpringDataApplication(CargoRepository repository){
this.repository = repository;
}
@Override
public void run(String... args) throws Exception{
Cargo cargo = new Cargo();
cargo.setDescricao("Desenvolvedor de software");
repository.save(cargo);
}
<groupId>br.com.alura</groupId>
<artifactId>spring-data</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>spring-data</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>17</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client -->
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>3.3.2</version>
</dependency>