Gente, dúvida. To fazendo a formação de Spring e to com o projeto do forum no eclipse, mas quando fui abrir outro projeto maven pra uma API que eu to criando nao consegui fazer funcionar e dá esse erro:
2021-05-03 04:59:37.650 INFO 18948 --- [ main] c.m.c.ColaboradoresApiApplication : Starting ColaboradoresApiApplication using Java 15.0.2 on DESKTOP-LV5TV6O with PID 18948 (C:\Users\gusta\Downloads\colaboradoresApi\colaboradoresApi\target\classes started by gusta in C:\Users\gusta\Downloads\colaboradoresApi\colaboradoresApi)
2021-05-03 04:59:37.655 INFO 18948 --- [ main] c.m.c.ColaboradoresApiApplication : No active profile set, falling back to default profiles: default
2021-05-03 04:59:39.101 INFO 18948 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-05-03 04:59:39.143 INFO 18948 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 20 ms. Found 0 JPA repository interfaces.
2021-05-03 04:59:40.325 INFO 18948 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2021-05-03 04:59:40.352 INFO 18948 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2021-05-03 04:59:40.353 INFO 18948 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.45]
2021-05-03 04:59:40.578 INFO 18948 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-05-03 04:59:40.579 INFO 18948 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2800 ms
2021-05-03 04:59:40.710 WARN 18948 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class
2021-05-03 04:59:40.718 INFO 18948 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2021-05-03 04:59:40.748 INFO 18948 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-05-03 04:59:40.786 ERROR 18948 --- [ 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).
Por que? O que pode ser?