Java Unable to import Spring RepositoryRestResource in IntelliJ

Solution for Java Unable to import Spring RepositoryRestResource in IntelliJ
is Given Below:

I am using IntelliJ. I received this following error,

@RepositoryRestResource
public interface CarRepository extends CrudRepository <Car, Long> {

Error: Cannot resolve symbol ‘RepositoryRestResource’

So I followed the directions in Spring Initializer and added lines below

Proposed Solution:

Unable to import Spring RepositoryRestResource

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>

Adding this line gives same error with this in POM:

Error: Dependency ‘org.springframework.boot:spring-boot-starter-data-rest:2.5.3’ not found

How can I fix this?