I'm a little new t working with Spring so any help provided would be great.
I have a SpringApplication class (annotated with @SpringBootApplication. In another class (within the same project), it contains a ServiceClass class. When the class is in the same project, it runs as expected.
When the ServiceClass is moved to an external jar, I get the following error.
Description:
Field service in package-to-class.Comp required a bean of type 'package-to-class.ServiceClass' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'package-to-class.ServiceClass' in your configuration.
I am trying to find what I need to do to inject (@AutoWired) into my project with the above error.