Após rodar o comando java -jar target/api-0.0.1-SNAPSHOT.jar, apareceu o seguinte log acusando falha.
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.1.3)
2023-09-20T15:20:52.758-03:00 INFO 22044 --- [ main] med.voll.api.SpringbootApiApplication : Starting SpringbootApiApplication v0.0.1-SNAPSHOT using Java 17.0.5 with PID 22044 (C:\Users\jpmat\Documents\java\formacao_java_alura_2\springboot_api\target\springboot_api-0.0.1-SNAPSHOT.jar started by jpmat in C:\Users\jpmat\Documents\java\formacao_java_alura_2\springboot_api)
2023-09-20T15:20:52.761-03:00 INFO 22044 --- [ main] med.voll.api.SpringbootApiApplication : No active profile set, falling back to 1 default profile: "default"
2023-09-20T15:20:54.211-03:00 INFO 22044 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2023-09-20T15:20:54.341-03:00 INFO 22044 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 116 ms. Found 4 JPA repository interfaces.
2023-09-20T15:20:55.195-03:00 WARN 22044 --- [ main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flyway' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Failed to instantiate [org.flywaydb.core.Flyway]: Factory method 'flyway' threw exception with message: 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-09-20T15:20:55.221-03:00 INFO 22044 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2023-09-20T15:20:55.269-03:00 ERROR 22044 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).