@EnableAsync
@Service
public class EmailService {
@Async
public void sendWelcomeEmail(String to) {
// runs on a background thread pool
}
}Tip
Mention the caveat: @Async only works on calls made from OUTSIDE the class (self-invocation bypasses the proxy).