Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.itcast.bos.dao.system.MenuRespositort cn.itcast.bos.service.system.impl.RoleServiceImpl.menuRespository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'menuRespositort': Invocation of init method failed; nested exception is org.springframework.data.mapping.PropertyReferenceException: No property user found for type Menu!
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
... 77 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'menuRespositort': Invocation of init method failed; nested exception is org.springframework.data.mapping.PropertyReferenceException: No property user found for type Menu!
解决问题
导入jar包出错
import org.springframework.data.elasticsearch.annotations.Query;
import org.springframework.data.jpa.repository.Query;