title: Spring Boot and MongoDB configuration
body: <p>i'm new with spring.</p>
  
  <p>I'm using maven to build my <strong>webapp</strong>.
  I have the following structs:</p>
  
  <ol>
  <li>pom.xml</li>
  <li>src/main/[java/resources]</li>
  </ol>
  
  <p>there is no *.xml file, *.conf or *.properties... nothing.</p>
  
  <p>Application.java</p>
  
  <pre><code>@Autowired
  private UserRepository repository;
  
  public static void main(String[] args) {
      SpringApplication.run(Application.class, args);
  }
  
  @Override
  public void run(String... args) throws Exception {
      repository.deleteAll();
      repository.save(new User("test", "123"));
      List&lt;User&gt; users = repository.findByLogin("test");
      ...
  }
  </code></pre>
  
  <p>Also, User.java and UserRepository.java</p>
  
  <pre><code>public interface UserRepository extends MongoRepository&lt;User, String&gt; {
  public List&lt;User&gt; findByLogin(String login);
  </code></pre>
  
  <p>}</p>
  
  <p>and it works!!!</p>
  
  <p>my question is: How I change the configuration of mongo? database, password??</p>
  
  <p>thanks!</p>