我使用spring-data-jpa运行本机postgres查询。查询是对实体的jsonb数据执行的。我可以在db服务器上成功地运行原始查询:FROM public.entity e where e.json ?'salary' and e.json ->> 'salary' > '10000';
但是,由于spring-data-
我正在使用Spring创建我的存储库接口。在使用@query注释指定explicity查询时,我看到了空指针异常。只有当查询中有多个命名参数时,才会发生这种情况,并且只有在使用命名参数时才会发生。(StringQuery.java:162)
at org.springframework.data.jpa.repository.query.StringQuery.我注意到bindings只有关于deviceStatus的条目(在