Error creating bean with name 'ESQueryUserImpl': Unsatisfied dependency expressed through field 'queryUserESRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryUserESRepository' defined in com.example.demo01.ESentity.ESservice.QueryUserESRepository defined in @EnableElasticsearchRepositories declared on ElasticsearchRepositoriesRegistrar.EnableElasticsearchRepositoriesConfiguration: Invocation of init method failed; nested exception is org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract org.springframework.data.domain.Page com.example.demo01.ESentity.ESservice.QueryUserESRepository.queryOutsourcingESQueryUsersByReal_nameMatches(java.lang.String,org.springframework.data.domain.Pageable)! Reason: No property real found for type OutsourcingESQueryUser!; nested exception is org.springframework.data.mapping.PropertyReferenceException: No property real found for type OutsourcingESQueryUser!这个应该怎么解决?
时间: 2024-04-26 13:21:30 浏览: 241
springboot的yml配置出错导致的报错.md
这个错误提示是因为在查询实体类 OutsourcingESQueryUser 中没有名为 real 的属性,导致查询失败。你可以检查一下实体类中是否存在这个属性,如果不存在,可以考虑修改查询方法或者修改实体类中的属性名。另外,也可以检查一下代码中是否存在拼写错误或者其他语法错误。如果以上方法都无法解决问题,可以提供更多的错误信息和代码,方便进行更深入的分析。
阅读全文