No property contain found for type String!

启动springboot报该异常!

这个看不出什么,再往前coused by

Error creating bean with name 'esBlogRepository': Invocation of init method failed; nested exception is org.springframework.data.mapping.PropertyReferenceException: No property contain found for type String! Traversed path: EsBlog.content.

可能是我的elacticesearch没有启动,因为esBlogRepository  extends ElasticsearchRepository

不是该原因

发现是使用jpa动态查询语句写错了

原文地址:https://www.cnblogs.com/zhengyuanyuan/p/9728412.html