Calling java methods asynchronous using spring | Level Up Lunch
Lets add @EnableAsync to our Application, which is an annotation that turns on springs async method execution. This annotation has similar proxying behaviors like @Cacheable. One thing to note, if you are calling multiple methods wrapped with @Async within the same class you will need to refactor the method into a new class due to the proxying behaviors.
Read full article from Calling java methods asynchronous using spring | Level Up Lunch
No comments:
Post a Comment