@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:
Comment From: bclozel
No, the error message says it all. If you need further assistance, please create a new question on StackOverflow with a minimal sample showing the problem.