I added the Java melody configuration in my spring boot application after I start the embedded tomcat server, I'm getting the following error:
APPLICATION FAILED TO START
Description:
There is a circular dependency between 5 beans in the application context:
- activeOrderController (field private om.gov.moh.nehr.service.ActiveOrderService om.gov.moh.nehr.controller.ActiveOrderController.activeOrderService)
- activeOrderServiceImpl (field public om.gov.moh.nehr.data.repository.ActiveDiagnosticOrderRepo om.gov.moh.nehr.service.impl.ActiveOrderServiceImpl.activeDiagnosticOrderRepo)
- activeDiagnosticOrderRepo
- (inner bean)#26d445e9
- entityManagerFactory defined in class path resource [om/gov/moh/nehr/config/DataSourceConfiguration.class]
- dataSource