我有一个 spring-data couchbase 存储库。我正在尝试通过 @Query 注释使用 n1ql 查询来查询数据库。我实现的一个基本存储库如下所示:
public interface CouchBaseRepository extends PagingAndSortingRepository<GsJsonStore, Long> {
@Query("SELECT * FROM default WHERE ?0 = ?1")
public Page<GsJsonStore> matchJson(String term, String value, Pageable pageable);�
}�
当我尝试使用此方法查询时,出现错误:
Unable to execute the query due to the following errors:
{"msg":"syntax error - at 0","code":3000}
有什么我做错了吗?