Correctness25 - SpotBugsExtensionForSpringFrameWork/CS5098 GitHub Wiki

Bug Name: @Async must be applied to public methods only

Description

@Service
public class DefaultNotificationProcessor implements NotificationProcessor {
    // ...
    @Async
    private void processAsync(Notification notification) { // No Private!!
        // Heavy processing
    }
}

Solutions

private -> public

Reference List

https://stackoverflow.com/questions/22561775/spring-async-ignored https://www.baeldung.com/spring-async#enable-async-support