@Asyncアノテーションとは 非同期に処理を実行できるようにする仕組み。 参考 7. Task Execution and Scheduling 参考 Spring MVC(+Spring Boot)上での非同期リクエストを理解する -前編- 簡単なサンプル pom.xml <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.2.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> 非同期にする処理に@Asyncを付与する。(@Asyncはメソッド単位でもクラス単位でも付与できる) @Slf4j
![Spring @Asyncで非同期処理をするときの注意点 - SIerだけど技術やりたいブログ](https://cdn-ak-scissors.b.st-hatena.com/image/square/b08a4d0541ec8e151551445f664ba2e1c52b30ba/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fk%2Fkimulla%2F20191201%2F20191201221740.png)