Details
-
Bug
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Done
-
None
-
eHoldings Sprint 108
-
1
-
Spitfire
Description
Overview:
Steps to Reproduce:
- Override bean folioTenantController
- Use property to exclude database autoconfiguration:
autoconfigure: exclude: - org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration - org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration - org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
Expected Results: No errors while running module
Actual Results:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘tenantService’ defined in URL [jar:file:/Users/NorthWind/.m2/repository/org/folio/folio-spring-base/1.0.2-SNAPSHOT/folio-spring-base-1.0.2-20210202.190827-1.jar!/org/folio/spring/service/TenantService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘org.springframework.jdbc.core.JdbcTemplate’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}