In my case if was cause by me adding this : implementation ("org.springframework.boot:spring-boot-starter-data-rest")