Everytime i try to import the ProjectService it gives me a excepiton.
But everytime i import the UserService it works perfectly fine. What is the problem here? I use the new version of the plugin/spring so it should take care of the imports as long as i annotate them. Can someone tell me what i am doing wrong, and please give me a full example? I already looked everywhere The code for the ProjectService import looks like this:
@Path("/message")
@Scanned
public class ProjectResource {
private ProjectService projectService;
@Autowired
public ProjectResource(@ComponentImport ProjectService projectService){
this.projectService = projectService;
}
@GET
@AnonymousAllowed
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
public Response getMessage()
{
return Response.ok(new ProjectResourceModel("Hello World")).build();
}
d