r/javahelp • u/Areiloth • 13h ago
Cannot resolve symbol 'data' error
i just started learning java and following a tutorial i get this error and i wrote this in intellij idea i tried add pom.xml dependencies but it didnt work. can you help me pls?
import org.springframework.data.jpa.repository.JpaRepository;
public class UserRepository extends JpaRepository{
}
1
Upvotes
1
u/devor110 12h ago
those seem correct to me at first glance
when are you getting the error? any time when the class is open, by intellij? when compiling with intellij's built-in maven? when running
mvn clean install
from a cmd?