title: html page refused to apply style bootstrap.min.css
body: <p>I am doing a project in <strong>Java</strong> using <strong>Spring Boot</strong> in the <strong>intellij idea</strong> under the management of <strong>Maven</strong>, and <em>I occasionally have a problem with connecting</em> <strong>bootstrap.min.css</strong> <em>on the</em> <strong>HTML</strong> <em>page</em>. </p>
  
  <p>In my case, this problem <strong><em>arises spontaneously</em></strong>, and I could not determine its cause. Even now <em>I have several absolutely identical projects, and in some of them this problem exists, and in others it has disappeared</em>.</p>
  
  <p>I connect <strong>bootstrap.min.css</strong> in the same way as on this page <a href="https://getbootstrap.com/docs/4.3/getting-started/introduction/" rel="nofollow noreferrer">https://getbootstrap.com/docs/4.3/getting-started/introduction/</a></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;!-- Required meta tags --&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"&gt;
      &lt;meta http-equiv="x-ua-compatible" content="ie=edge"&gt;
  
      &lt;title&gt;LoginPage2&lt;/title&gt;
  
      &lt;!-- Bootstrap CSS --&gt;
      &lt;link rel="stylesheet" href="/static/css/bootstrap.min.css"
            integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"&gt;
  
  </code></pre>
  
  <p><strong>when I go to the page in the browser, an error message is displayed in the console</strong>:</p>
  
  <p><code>Refused to apply style from 'http://localhost:8081/static/css/bootstrap.min.css' because its MIME type ('application/json') is not a supported stylesheet MIME type, and strict MIME checking is enabled</code></p>