title: spring boot basic authentication not work
body: <p>I am new for spring boot and I tried to develop api with basic authentication  .BUT I always gets
  &quot;status:401 Unauthorized&quot;.</p>
  <p>*In pom.xml</p>
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-security&lt;/artifactId&gt;
      &lt;/dependency&gt;
  </code></pre>
  <p>*In application.properties</p>
  <pre><code>       management.security.enabled= false
         spring.security.user.name = username
         spring.security.user.password=123456
  
  
  
  
        
  </code></pre>