java - Spring @Async Not Working - Stack Overflow
What this means is that if you had a static method Foo.bar(), calling it in that manner wouldn't execute it in async, even if it was annotated with @Async. You'll have to annotate Foo with @Component, and in the calling class get an @Autowired instance of Foo.
Read full article from java - Spring @Async Not Working - Stack Overflow
No comments:
Post a Comment