I have the spring datasource properties in my property file as well. But still I am getting this error.
spring.datasource.url=jdbc:postgresql://localhost:5432/prepseo spring.datasource.username=flashtools spring.datasource.password=flashtools spring.datasource.driver-class-name=org.postgresql.Driver spring.jooq.sql-dialect=Postgres spring.datasource.type=com.zaxxer.hikari.HikariDataSource spring.datasource.hikari.pool-name=PrepSeoServiceDB spring.datasource.hikari.initial-size=5 spring.datasource.hikari.maximum-pool-size=40 spring.datasource.hikari.minimum-idle=2 spring.datasource.hikari.idle-timeout=10000 spring.datasource.prepStmtCacheSize=250 spring.datasource.prepStmtCacheSqlLimit=2048 On Tuesday, February 18, 2020 at 10:52:22 PM UTC-8, Debapriya Patra wrote: > > Hi, > > I am trying to setup a new micro-service using spring-boot and jooq. I am > able to generate the POJOs from the DB schema but when I am starting the > application I am getting an error as below. > > 02-18-2020 22:39:48.707 | Test worker | requestId: | ERROR | > LoggingFailureAnalysisReporter - > > *************************** > APPLICATION FAILED TO START > *************************** > > Description: > > Field dsl in com.chegg.prep.seo.service.dao.BaseRepository required a bean > of type 'org.jooq.DSLContext' that could not be found. > > Caused by: > org.springframework.beans.factory.NoSuchBeanDefinitionException: No > qualifying bean of type 'org.jooq.DSLContext' available: expected at least > 1 bean which qualifies as autowire candidate. Dependency annotations: > {@org.springframework.beans.factory.annotation.Autowired(required=true)} > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1654) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1213) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1167) > at > org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593) > > Can someone help me understand what am I missing here while setting up the > dependencies or configurations ? > > > Thanks, > Deba > -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/4be3bd43-2f57-48fc-b930-3cb7761ab3e8%40googlegroups.com.