}
private void init() {
ResourcePatternScannerManager scannerManager = new ResourcePatternScannerManager();
scannerManager.addScanner(ClassPathResource.RESOURCE_PROTOCOL_NAME,
new ClassPathResourceScanner());
scannerManager.addScanner(FileResource.RESOURCE_PROTOCOL_NAME,
new FileSystemResourceScanner());
scannerManager.addScanner(
ServletContextResource.RESOURCE_PROTOCOL_NAME,
new ServletContextResourceScanner(servletContext));