spring - 使用 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
有人知道一些教程或一些东西来捕捉数据,或者至少,得到通知?
谢谢!!
解决方案
Spring Boot 的数据库自动配置模块使用 Spring Data 的实现,而 Oracle NoSql 尚未出现在该列表中。
您可以通过链接https://spring.io/projects/spring-data找到此列表。
因此,要使其工作,您可能需要自己实现它。
推荐阅读
- c++ - 按索引设置 std::variant 的值
- python - 在 Windows 中启动 python 脚本的最佳方式是什么?
- c++ - 如何将矢量对象更改为不同的颜色?
- c# - 创建具有二维数组的表矩阵 C#
- javascript - 是否可以在 d3 中选择特定的 X 比例?
- python - 如何从 for 循环动态创建不同的数据帧以存储数据
- css - 如何使可切换的 mat-sidenav 推送也成为 mat-sidenav-content 中的固定标题
- r - 从 R 中的 twitter 源获取子字符串
- android - 构建后对本机编辑文件做出反应
- sql - SQLite & INNER JOIN 查询