Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

Erro ao executar ApiApplication - pós alterações de repository

2023-07-30T14:19:02.620-03:00 WARN 10256 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSourceScriptDatabaseInitializer' defined in class path resource [org/springframework/boot/autoconfigure/sql/init/DataSourceInitializationConfiguration.class]: Unsatisfied dependency expressed through method 'dataSourceScriptDatabaseInitializer' parameter 0: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception with message: Failed to determine a suitable driver class 2023-07-30T14:19:02.622-03:00 INFO 10256 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2023-07-30T14:19:02.645-03:00 INFO 10256 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. 2023-07-30T14:19:02.678-03:00 ERROR 10256 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Failed to configure a DataSource: no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class

3 respostas
solução!

voce criou um repository, mas nas tem configuracao de banco de dados no seu application.properties

Qual configuração preciso inserir nele Thiago?

Havia digitado errado o spring.datasource.url=jdbc:mysql://localhost/vollmed_api, dentro do application.properties