String applicationPath = ApplicationConfigurationContext.getInstance().getApplicationPath();
ClassScanner scanner = new ClassScanner();
try {
classes = scanner.discover(applicationPath);
} catch (IOException e) {
log.error(e);
}
if (classes != null) {