Uploaded image for project: 'folio-spring-base'
  1. folio-spring-base
  2. FOLSPRINGB-11

UnsatisfiedDependencyException: Error creating bean with name ‘tenantService’

    XMLWordPrintable

Details

    • eHoldings Sprint 108
    • 1
    • Spitfire

    Description

      Overview:
      Steps to Reproduce:

      1. Override bean folioTenantController
      2. 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: {}
      

      TestRail: Results

        Attachments

          Activity

            People

              psmagin Pavlo Smahin
              psmagin Pavlo Smahin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases