Add ClassPathResource component.