Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Thomas Salai
4,964 PointsCan not resolve symbol 'Entity'
I have followed this course so far however, I encounter some problem here.
When I want to add "@Entity" Annotation on data model "Category" the entity symbol can not be resolve.
IDE suggest me to add "spring-boot-starter-data-jpa" Library to Project -
There are two options:
- Use "spring-boot-starter-data-jpa" from IntelliJ IDEA distribution
- Copy ""spring-boot-starter-data-jpa" library file to...
If I choose both nothing happened.
How can i solve this problem?
regards, Thomas
1 Answer
markmneimneh
14,133 PointsI am not sure why you are facing this problem but you can easily add "spring-boot-starter-data-jpa" to your MAVEN project POM file. you can do similar thing if you have a Gradle project instead
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> <version>1.3.7.RELEASE</version> </dependency>
Gradle compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: '1.3.7.RELEASE'