title: Why WebMvcTest tries to load all configurations?
body: <p>I wrote a simple controller class and trying to test with <code>@WebMvcTest</code></p>
  <pre class="lang-java prettyprint-override"><code>@RequiredArgsController
  class MyController {
  
      private final MyService myService;
  }
  </code></pre>
  <pre class="lang-java prettyprint-override"><code>@WebMvcTest(controllers = {MyController.class})
  class MyControllerTest {
  
      @MockBean
      private MyService myService;
  }
  </code></pre>
  <p>The the test seems trying to load all configurations such as datasources an so on.</p>
  <p>How can I fix this?</p>