1
resposta

Imporatação do projeto

Ocorre erro depois de importar o projeto.

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'entityManagerFactory' defined in class br.com.casadocodigo.loja.conf.JPAConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [javax.sql.DataSource]: : No qualifying bean of type [javax.sql.DataSource] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [javax.sql.DataSource] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
1 resposta

Fala Fagner, tudo bem ?

Então .. o container do Spring está tentando criar o EntityManagerFactory, porém pelo que diz a exception um DataSource (necessário para o EMF) não está sendo encontrado.

No qualifying bean of type [javax.sql.DataSource] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency

Como está sua classe de configuração da JPA? Poste o código pra podermos dar uma olhada.

Abraço