@Configuration @EnableAsync public class AppConfig { @Resource private AppConfig app ; @Async public void fn() {} }
When defining an @async asynchronous method in a configuration class, the program may fail to start normally and throw an exception like the following:
