【发布时间】:2021-05-18 12:48:55
【问题描述】:
我有关注application.properties:
spring.data.cassandra.contact-points=localhost
spring.data.cassandra.port=1112
在我们的信息系统中,有 2 个可访问的 ** cassandra 节点** (在我的笔记本电脑上的 localhost:1112 和 localhost:1113 上完成了一次重定向)
我的问题是:我如何在 application.properties 中指定 2 个不同的主机/端口?因为我已经用
spring.data.cassandra.contact-points=localhost:1112,localhost:1113
使用不同的端口,它不起作用
【问题讨论】: