本文主要介绍springboot jdbctemplate多数据源(springboot配置多数据源无效),下面一起看看springboot jdbctemplate多数据源(springboot配置多数据源无效)相关资讯。
错误报告信息
description :应用程序上下文中的一些beans的依赖关系形成了一个cycl: org . spring framework . boot . auto config ure.orm.jpa.hibernatejpaconfiguration┌─────┐| dynamic data source在类路径资源中定义[com/gii kin/ads/alert/ads rule/data source config . class]↑↓| data source在类路径资源中定义[com/gii kin/ads/alert/ads rule/data source config . class]↑↓| org . spring framework . boot . auto configure . jdbc . data source
1.将正确的版本添加到pom.xml中的spring-boot-starter-data-jpa例如,version2.3.5.release/version找到了您的集成的相应版本。
依赖性groupidorg.springframework.boot/groupid artifactid spring-boot-starter-data-jpa/artifactid version2.3.5.release/version/依赖性2 .将以下代码添加到启动类中
@ spring boot application(exclude = { data source auto configuration . class })
标签:
版本给你
了解更多springboot jdbctemplate多数据源(springboot配置多数据源无效)相关内容请关注本站点。