title: Spring boot security password not printed
body: <p>I have a basic spring boot RESTful application which works fine but when I try to add authorization using <strong>spring-boot-starter-security</strong> the password is not printed on the console. Following are the contents of the relevant files </p>
  
  <p><em>application.properties</em></p>
  
  <pre><code>logging.file=route.log
  logging.level.org.springframework.web=ERROR
  logging.level.org.springframework.boot.test=ERROR
  logging.level.org.springframework.boot.autoconfigure.security=INFO
  </code></pre>
  
  <p><em>pom.xml</em></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.be.test&lt;/groupId&gt;
      &lt;artifactId&gt;testName&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;1.4.2.RELEASE&lt;/version&gt;
          &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
          &lt;start-class&gt;com.be.test.TestNameApplication&lt;/start-class&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &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;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/com.google.maps/google-maps-services --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.maps&lt;/groupId&gt;
              &lt;artifactId&gt;google-maps-services&lt;/artifactId&gt;
              &lt;version&gt;0.1.17&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/commons-io/commons-io --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-io&lt;/groupId&gt;
              &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
              &lt;version&gt;2.5&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><em>controller class</em></p>
  
  <pre><code>package com.be.test.api;
  
  @RestController
  public class TestController {
  
      @RequestMapping(value = "/test", method=RequestMethod.GET)
      public
      @ResponseBody
      long test() {
          return 1000;
      }
  }
  </code></pre>
  
  <p><em>Main class</em></p>
  
  <pre><code>package com.be.test;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  import org.springframework.context.ApplicationContext;
  import org.springframework.context.annotation.ComponentScan;
  
  @SpringBootApplication()
  @ComponentScan
  @EnableAutoConfiguration
  public class TestNameApplication {
  
      public static void main(String[] args) throws Exception {
  
          ApplicationContext ctx = SpringApplication.run(TestNameApplication.class, args);
  
      }
  }
  </code></pre>
  
  <p>Is there anything missing from any of the files ?</p>