首页 > 解决方案 > 使用 Oracle NoSql 的 Spring Boot application.properties

问题描述

我一直在寻找有关创建连接到 Oracle NoSql 数据库的 Spring Boot 应用程序的信息,但我只找到有关 mongoDB 项目的信息......我如何设置我的 application.properties 来捕获驱动程序、url、数据库... Oracle NoSql 等?我的意思是,对于 MongoDB,我可以找到这个:

spring.data.mongodb.authentication-database= # Authentication database name.
spring.data.mongodb.database=test # Database name.
spring.data.mongodb.field-naming-strategy= # Fully qualified name of the FieldNamingStrategy to use.
spring.data.mongodb.grid-fs-database= # GridFS database name.
spring.data.mongodb.host=localhost # Mongo server host.
spring.data.mongodb.password= # Login password of the mongo server.
spring.data.mongodb.port=27017 # Mongo server port.
spring.data.mongodb.repositories.enabled=true # Enable Mongo repositories.
spring.data.mongodb.uri=mongodb://localhost/test # Mongo database URI. When set, host and port are ignored.
spring.data.mongodb.username= # Login user of the mongo server.

所以,我正在寻找类似的东西:

spring.data.oracle-nosql.url = localhost
spring.data.oracle-nosql.driver-name=oracle-nosql-driver-name

有人知道一些教程或一些东西来捕捉数据,或者至少,得到通知?

谢谢!!

标签: springspring-bootpropertiesoracle-nosql

解决方案


Spring Boot 的数据库自动配置模块使用 Spring Data 的实现,而 Oracle NoSql 尚未出现在该列表中。

您可以通过链接https://spring.io/projects/spring-data找到此列表。

因此,要使其工作,您可能需要自己实现它。


推荐阅读