title: How to set default environment in Spring Boot
body: <p>How can I set the default environment in Spring Boot?</p>
  
  <p>I put in <code>application.properties</code>:</p>
  
  <pre><code>spring.profiles.include=prod,dev
  spring.profiles.active=prod
  </code></pre>
  
  <p>and in user variables:</p>
  
  <pre><code>SPRING_PROFILES_ACTIVE = dev
  </code></pre>
  
  <p>So when I dev in my comp my environment are dev but when I generate my <code>.war</code> and deploy in tomcat he still using <code>dev</code> with enviroment (I deploy in another comp with no other conf)</p>
  
  <p>How can I set my default environment (if he don't find any in user variables or commmand line uses production)?</p>