|
|
@ -0,0 +1,18 @@ |
|
|
|
package a8k; |
|
|
|
import a8k.utils.AppServiceManager; |
|
|
|
import jakarta.annotation.Resource; |
|
|
|
import org.springframework.boot.ApplicationArguments; |
|
|
|
import org.springframework.boot.ApplicationRunner; |
|
|
|
import org.springframework.core.annotation.Order; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
@Order(1) |
|
|
|
@Component |
|
|
|
public class MyApplicationRunner implements ApplicationRunner { |
|
|
|
@Resource |
|
|
|
private AppServiceManager appServiceManager; |
|
|
|
|
|
|
|
@Override |
|
|
|
public void run(ApplicationArguments args) throws Exception { |
|
|
|
this.appServiceManager.loadActions(); |
|
|
|
} |
|
|
|
} |