java – required a bean named ‘entityManagerFactory’ that could not be found

. ____ _ __ _ insira o código aqui
/ / __ _ () __ __ _
( ( )_
| ‘_ | ‘| | ‘ / ` |
/ __)| |)| | | | | || (
| | ) ) ) )
‘ || .__|| ||| |_, | / / / /
=========|
|==============|
/=////
:: Spring Boot :: (v2.1.12.RELEASE)

2021-04-05 14:07:12.362 INFO 19212 — ( restartedMain) c.t.s.DesafioSupply.Application : Starting Application on spon190100264 with PID 19212 (C:Usersjose.leocadioDesktopDesafioSupplyAgroTOTVSDesafioSupplytargetclasses started by jose.leocadio in C:Usersjose.leocadioDesktopDesafioSupplyAgroTOTVSDesafioSupply)
2021-04-05 14:07:12.368 INFO 19212 — ( restartedMain) c.t.s.DesafioSupply.Application : No active profile set, falling back to default profiles: default
2021-04-05 14:07:12.688 INFO 19212 — ( restartedMain) .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set ‘spring.devtools.add-properties’ to ‘false’ to disable
2021-04-05 14:07:12.689 INFO 19212 — ( restartedMain) .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the ‘logging.level.web’ property to ‘DEBUG’
2021-04-05 14:07:17.693 INFO 19212 — ( restartedMain) .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-04-05 14:07:18.103 INFO 19212 — ( restartedMain) .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 395ms. Found 3 JPA repository interfaces.
2021-04-05 14:07:20.148 INFO 19212 — ( restartedMain) faultConfiguringBeanFactoryPostProcessor : No bean named ‘errorChannel’ has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
2021-04-05 14:07:20.167 INFO 19212 — ( restartedMain) faultConfiguringBeanFactoryPostProcessor : No bean named ‘integrationHeaderChannelRegistry’ has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
2021-04-05 14:07:20.781 INFO 19212 — ( restartedMain) trationDelegate$BeanPostProcessorChecker : Bean ‘org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration’ of type (org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$633c801a) is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-05 14:07:21.210 INFO 19212 — ( restartedMain) trationDelegate$BeanPostProcessorChecker : Bean ‘integrationDisposableAutoCreatedBeans’ of type (org.springframework.integration.config.annotation.Disposables) is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-05 14:07:21.365 INFO 19212 — ( restartedMain) trationDelegate$BeanPostProcessorChecker : Bean ‘org.springframework.integration.config.IntegrationManagementConfiguration’ of type (org.springframework.integration.config.IntegrationManagementConfiguration$$EnhancerBySpringCGLIB$$ce2e3b49) is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-05 14:07:21.446 INFO 19212 — ( restartedMain) trationDelegate$BeanPostProcessorChecker : Bean ‘org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration$IntegrationJmxConfiguration’ of type (org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration$IntegrationJmxConfiguration$$EnhancerBySpringCGLIB$$a9c04669) is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-05 14:07:21.485 INFO 19212 — ( restartedMain) trationDelegate$BeanPostProcessorChecker : Bean ‘org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration’ of type (org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration$$EnhancerBySpringCGLIB$$e2a7ef36) is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-05 14:07:21.543 INFO 19212 — ( restartedMain) trationDelegate$BeanPostProcessorChecker : Bean ‘mbeanServer’ of type (com.sun.jmx.mbeanserver.JmxMBeanServer) is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-04-05 14:07:25.746 INFO 19212 — ( restartedMain) o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2021-04-05 14:07:25.834 INFO 19212 — ( restartedMain) o.apache.catalina.core.StandardService : Starting service (Tomcat)
2021-04-05 14:07:25.835 INFO 19212 — ( restartedMain) org.apache.catalina.core.StandardEngine : Starting Servlet engine: (Apache Tomcat/9.0.30)
2021-04-05 14:07:26.874 INFO 19212 — ( restartedMain) o.a.c.c.C.(Tomcat).(localhost).(/) : Initializing Spring embedded WebApplicationContext
2021-04-05 14:07:26.874 INFO 19212 — ( restartedMain) o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 14185 ms
2021-04-05 14:07:27.942 INFO 19212 — ( restartedMain) o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService ‘taskScheduler’
2021-04-05 14:07:32.596 WARN 19212 — ( restartedMain) ConfigServletWebServerApplicationContext : Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘enderecoController’: Unsatisfied dependency expressed through field ‘service’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘enderecoService’: Unsatisfied dependency expressed through field ‘repository’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘enderecoRepository’: Cannot create inner bean ‘(inner bean)#3ed12fb9’ of type (org.springframework.orm.jpa.SharedEntityManagerCreator) while setting bean property ‘entityManager’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘(inner bean)#3ed12fb9’: Cannot resolve reference to bean ‘entityManagerFactory’ while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘entityManagerFactory’ available
2021-04-05 14:07:32.608 INFO 19212 — ( restartedMain) o.s.s.c.ThreadPoolTaskScheduler : Shutting down ExecutorService ‘taskScheduler’
2021-04-05 14:07:32.640 INFO 19212 — ( restartedMain) o.apache.catalina.core.StandardService : Stopping service (Tomcat)
2021-04-05 14:07:32.763 INFO 19212 — ( restartedMain) ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2021-04-05 14:07:33.228 ERROR 19212 — ( restartedMain) o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Field repository in com.totvs.supplyagro.DesafioSupply.Cadastros.Endereco.domain.EnderecoService required a bean named ‘entityManagerFactory’ that could not be found.

The injection point has the following annotations:
– @org.springframework.beans.factory.annotation.Autowired(required=true)

Action:

Consider defining a bean named ‘entityManagerFactory’ in your configuration.

Process finished with exit code 1