[Solved] Spring autowire null pointer exception [duplicate]


ABC is not managed by spring.

For @Autowired annotation to work you have to annotate that class with either of the following:

@Component
@Service
@Controller
@Repository

or define it in the XML configuration

9

solved Spring autowire null pointer exception [duplicate]