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动态查询语句写错了

posted @ 2018-09-30 10:40  十黎九夏  阅读(1846)  评论(0编辑  收藏  举报