我正在尝试将Spring WebFlux(春季启动版本2.0.6)与datastax Cassandra DSE3.x连接。但是,当我尝试使用带有自定义查询的ReactiveCassandraRepository查询Cassandra表时,出现以下错误。但是我可以从该表中获取记录的数量。
本机协议V1不支持的功能(当前正在使用):不支持二进制值;默认值为0。嵌套的异常是com.datastax.driver.core.exceptions.UnsupportedFeatureException:本机协议V1不支持的功能(当前正在使用):不支持二进制值“
我的存储库代码为
public interface SystemLookupReactiveRepository extends ReactiveCrudRepository<SystemLookup, String> {
@AllowFiltering
@Query("{SELECT * FROM \"SystemLookup\" WHERE LookupId = ?0 ALLOW FILTERING}")
Mono<SystemLookup> findByLookupId(String lookupId);}
我的POM文件是:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-cassandra-reactive</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
<exclusions>
<exclusion>
<artifactId>spring-boot-starter-reactor-netty</artifactId>
<groupId>org.springframework.boot</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-test</artifactId>
<scope>test</scope>
</dependency>