我们正在使用 Spring Data Couchbase 项目,当尝试在生产中执行现有视图时遇到以下错误
HTTP Status 500 - org.springframework.dao.InvalidDataAccessResourceUsageException:
Could not load view "fooCount" for design doc "_design/foo";
nested exception is com.couchbase.client.protocol.views.InvalidViewException:
Could not load view "fooCount" for design doc "_design/foo"
下面是我们的 Spring Data Repository 定义
public interface FooRepository extends CrudRepository<Foo,String>{
@View(designDocument="_design/foo",viewName="fooCount")
public Long fooCount();
}
谁能提供使用 couchbase 视图执行查询的示例?该文档似乎缺少这样做的示例。