Spring Boot @Async method in controller is executing synchronously

You are calling the @Async method from another method in the same class. Unless you enable AspectJ proxy mode for the @EnableAsync (and provide a weaver of course) that won’t work (google “proxy self-invocation”). The easiest fix is to put the @Async method in another @Bean.

Leave a Comment