I tried to remove the dependency of spring-boot-starter-data-rest and it works right
spring-boot-starter-data-rest