0

I am trying to inject a component with static modifier as my method which needs it is already static.. but injected component is null when the access modifier static..

@Autowired Service service; - Works fine

@Autowired static Service service; - returning null...NullPointerException

Anil Konduru
  • 878
  • 10
  • 18

0 Answers0