|
|
@@ -33,9 +33,13 @@ public class CoreApplicationStartedListener implements ApplicationListener<Appli |
|
|
|
applicationContext.publishEvent(new TaskStartEvent()); |
|
|
|
//包扫描 |
|
|
|
ApplicationScanner.scan(applicationContext); |
|
|
|
|
|
|
|
List<IStartListener> list = BeanManager.getInstance().getStartListeners(); |
|
|
|
list.sort(Comparator.comparingInt(IStartListener::order)); |
|
|
|
for (IStartListener sl : list) { |
|
|
|
sl.init(); |
|
|
|
} |
|
|
|
for (IStartListener sl : list) { |
|
|
|
sl.run(); |
|
|
|
} |
|
|
|
// 通知 controller 正式使用 |
|
|
|