Trying to import import org.springframework.stereotype.Service;
I get cannot resolve symbol stereotype. As I understand it, I should be able to get the required dependency using Maven.
However... how do I find out which dependency to get -- i.e. the name of the dependency? That is, which library contains this library and how would I go about finding out?
Thanks!
It's the spring-context jar that your need. Add the following to your maven dependencies..
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.6.RELEASE</version>
</dependency>
This example is referencing the latest version of the jar available at the moment but you should match the version with the version of spring that you want.
You can use this site : http://www.findjar.com/
Just past your class name (entire path org.spri...)
You need to import this dependency in Maven:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
Note that the version number can be omitted if you use the parent module of Spring Boot:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.3.RELEASE</version>
</parent>
where 1.4.3.RELEASE is the latest version of Spring Boot.
Google search
org.springframework.stereotype.Service jar
and then do a search here for the maven dependency configuration
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With