title: What is username and password when starting Spring Boot with Tomcat?
body: <p>When I deploy my Spring application via Spring Boot and access <code>localhost:8080</code> I have to authenticate, but what is the username and password or how can I set it?  I tried to add this to my <code>tomcat-users</code> file but it didn't work: </p>
  
  <pre><code>&lt;role rolename="manager-gui"/&gt;
      &lt;user username="admin" password="admin" roles="manager-gui"/&gt;
  </code></pre>
  
  <p>This is the starting point of the application:</p>
  
  <pre><code>@SpringBootApplication
  public class Application extends SpringBootServletInitializer {
  
      public static void main(String[] args) {
          SpringApplication.run(Application.class, args);
      }
  
      @Override
      protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
          return application.sources(Application.class);
      }
  }
  </code></pre>
  
  <p>And this is the Tomcat dependency:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>How do I authenticate on <code>localhost:8080</code>?</p>