Pessoal ao startar a classe configuração ele mostra esse erro> Error Creating Bean with name 'entityManagerFactory' segue o código
package br.com.listavip.config;
import java.util.Properties;
import javax.sql.DataSource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.jdbc.datasource.DriverManagerDataSource;
@SpringBootApplication
public class Configuracao {
public static void main(String[] args) {
SpringApplication.run(Configuracao.class, args);
}
@Bean
public DataSource dataSource() {
DriverManagerDataSource dataSource = new DriverManagerDataSource();
dataSource.setDriverClassName("com.mysql.cj.jdbc.Driver");
dataSource.setUrl("jdbc:mysql://localhost:3306/listavip?useTimezone=true&serverTimezone=UTC");
dataSource.setUsername("root");
dataSource.setPassword("root");
return dataSource;
}
package br.com.listavip.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import br.com.listavip.model.Convidado;
import br.com.listavip.repository.ConvidadoRepository;
@Controller
public class GuestController {
@Autowired
private ConvidadoRepository convidadoRepository;
@RequestMapping ("/")
public String index(){
return "index";
}
@RequestMapping("listaconvidados")
public String listGuest(Model model){
Iterable<Convidado> convidados = convidadoRepository.findAll();
model.addAttribute("convidados", convidados);
return "listaconvidados";
}
}
package br.com.listavip.repository;
import org.springframework.data.repository.CrudRepository;
import br.com.listavip.model.Convidado;
public interface ConvidadoRepository extends CrudRepository<Convidado, Long> {
}