Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud firestore Spring Boot上的Firestore和Mysql。可能吗?_Google Cloud Firestore - Fatal编程技术网

Google cloud firestore Spring Boot上的Firestore和Mysql。可能吗?

Google cloud firestore Spring Boot上的Firestore和Mysql。可能吗?,google-cloud-firestore,Google Cloud Firestore,我的Spring启动应用程序有问题。我想在我的Spring boot应用程序中连接Firestore和MySql数据库。我想知道这是否可能。所以我想知道是否有人有一个简单的例子来了解这个魔法。谢谢。连接本身应该不会有任何问题。Firestore为所有流行语言开发了良好的API,使用非常简单方便,请查看下面的参考资料 您提到了MySQL,不确定您是否知道GCP也有无服务器的云SQL,可以为您运行MySQL() 您可以在此处找到参考资料和快速入门: 谷歌云Firestore:,和 在这里,我找到了示

我的Spring启动应用程序有问题。我想在我的Spring boot应用程序中连接Firestore和MySql数据库。我想知道这是否可能。所以我想知道是否有人有一个简单的例子来了解这个魔法。谢谢。

连接本身应该不会有任何问题。Firestore为所有流行语言开发了良好的API,使用非常简单方便,请查看下面的参考资料

您提到了MySQL,不确定您是否知道GCP也有无服务器的云SQL,可以为您运行MySQL()

您可以在此处找到参考资料和快速入门:

谷歌云Firestore:,和

在这里,我找到了示例应用程序教程:

其他有趣的东西:,来自docs.spring.io


您还可以部署您的Spring Boot应用程序,它可以为您的整个堆栈提供无服务器解决方案—在GCP上完整部署。

谢谢@vitooh。我已经有了一个运行Firestore的Spring应用程序。我的问题是要有一个Spring JPA关系数据库,同时还要有Firestore逻辑。当我尝试一起运行时,我遇到了一个错误-org.springframework.dao.InvalidDataAccessApiUsageException:JPAI不支持反应性存储库,建议使用错误堆栈和触发错误的部分代码创建新问题。如果可能,最好是创建生成异常的简单代码,如下所述: