我从以下url中的Teiid Spring Boot简单示例开始:https://github.com/teiid/teiid-spring-boot/blob/master/docs/UserGuide.adoc
它使用两个不同的数据源来演示Teiid Spring Boot交互和从多个数据源获取数据的能力。然而,当我部署我的Teiid Spring Boot组件时,它抛出了与entityManagerFactory相关的异常。
我遇到的一个与Spring Boot相关的站点说,为了定义和使用多个数据源,我需要指定一个作为主数据源,其他作为辅助数据源,就像这个页面上提供的那样:https://springframework.guru/how-to-configure-multiple-data-sources-in-a-spring-boot-application/
有没有人能确认一下我的理解是否正确?是否需要定义主数据源和辅助数据源?
我使用的是Spring Boot 2.2.4和Teiid 1.3.0
谢谢!Purnima Das
发布于 2020-01-24 21:37:54
你在这里见过这个只有一个数据库的工作示例吗?https://github.com/teiid/teiid-spring-boot/tree/master/samples/rdbms Teiid 1.3.0它可以很容易地扩展到有两个数据库。它现在只适用于Spring Boot 2.1.6.RELEASE。使用此框架不需要定义主要和次要。按照示例进行操作。
https://stackoverflow.com/questions/59873349
复制相似问题