Pessoal,
Sou novato com Java ( Spring Boot ) e assistindo um vídeo do Professor Alberto Souza me deparei com o seguinte erro na hora de executar o projeto no Eclipse:
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.3.RELEASE)
2018-04-18 13:57:03.589 INFO 17076 --- [ main] br.com.dsm.teste2.Boot : Starting Boot on DESKTOP-A96VVIF with PID 17076 (E:\Estudo\teste2\target\classes started by Diogo Miranda in E:\Estudo\teste2)
2018-04-18 13:57:03.593 INFO 17076 --- [ main] br.com.dsm.teste2.Boot : No active profile set, falling back to default profiles: default
2018-04-18 13:57:03.659 INFO 17076 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@31206beb: startup date [Wed Apr 18 13:57:03 BRT 2018]; root of context hierarchy
2018-04-18 13:57:04.702 WARN 17076 --- [ main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'javax.sql.DataSource' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
2018-04-18 13:57:04.711 INFO 17076 --- [ main] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-04-18 13:57:04.845 ERROR 17076 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration required a bean of type 'javax.sql.DataSource' that could not be found.
- Bean method 'dataSource' not loaded because @ConditionalOnProperty (spring.datasource.jndi-name) did not find property 'jndi-name'
- Bean method 'dataSource' not loaded because @ConditionalOnBean (types: org.springframework.boot.jta.XADataSourceWrapper; SearchStrategy: all) did not find any beans
Action:
Consider revisiting the conditions above or defining a bean of type 'javax.sql.DataSource' in your configuration.
Alguém poderia me dizer porque seria?
Grato pela força.