简体   繁体   English

如何在JHipster中配置多个数据源(Oracle和MongoDB)?

[英]How do I configure multiple datasourses (Oracle and MongoDB) in JHipster?

我需要使用Oracle DB进行用户身份验证,对于项目中的其余实体,我需要使用MongoDB,在这种情况下,是否有任何方法可以向Jhipster添加多个数据源?

JHipster only works with one single DataSource. JHipster仅适用于单个数据源。 Otherwise the number of possibilities are just so complex that we just can't generate all types of combinaisons. 否则,可能性的数量是如此复杂,以至于我们无法生成所有类型的组合。

What you could do is generate both an SQL and a MongDB project, and merge them manually. 您可以做的是生成SQL和MongDB项目,然后手动合并它们。 As you only use your SQL database for authentication, keep the MongoDB application your main project, and you should be able to continue working on it. 由于您仅使用SQL数据库进行身份验证,因此将MongoDB应用程序保留在主项目中,就可以继续进行操作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM