Spring Bootテストにおける「java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration」の解決策

問題の概要 Spring Cloudプロジェクトで@SpringBootTestアノテーションを使用して単体テストを実行すると、以下のエラーが発生することがあります。 java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test 原因の分析 @SpringBootTestアノテーションは、テ ...

6月21日 22:02 投稿