Why is my Spring @Autowired field null? Note: This is intended to be a canonical answer for a common problem.