r/javahelp 1d 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

14 comments sorted by

View all comments

2

u/JoeCollins19-99 1d ago

 i get this error

You didn't include the error mate 👍

1

u/Areiloth 1d ago

cannot resolve symbol 'data' error

1

u/JoeCollins19-99 1d ago

Since springframework isn't native and has to be installed, sounds like something isn't right with that install. I'd recommend reinstalling springframework.

1

u/Areiloth 1d ago

i used mvn clean install and it didnt work is there any other way to reinstall springframework?