Linked Questions

Popular Questions

I am creating a object from a static method which consists of @Autowired components.

I see the objects are null when I execute my application.

can some one explain what is the correct way of fixing this issue?

public static void process() {
Processor processor = new Processor();
Processer.addListner(new ErrorListner()); 
}


Public Class ErrorListner {
@Autowired private PublishService service;
}

Related Questions