在spring boot中使用jpa配置是继承JpaRepository出现异常org.springframework.beans.factory.UnsatisfiedDependencyException
具体异常信息如下:
Error creating bean with name ‘bannerController’: Unsatisfied dependency expressed through field ‘bannerService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘bannerService’: Unsatisfied dependency expressed through field ‘bannerRepository’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bannerRepository’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.ma.movie.model.Banner com.ma.movie.repository.BannerRepository.fondOneById(java.lang.Long)! No property fondOneById found for type Banner!
最开始没有意识到什么问题就以为是配