title: spring boot --spring.application.json parameters not being set
body: <p>I have a spring boot application that currently has a "mysql" profile that sets the following properties:</p>
  
  <pre><code>spring.datasource.url = 
  spring.datasource.username = 
  spring.datasource.password = 
  </code></pre>
  
  <p>in /resources/application-mysql.properties file.
  This is working great. When I run the mysql profile it connects to the local mysql database. When I don't run the mysql profile it uses the default h2 database. Next I want to get rid of the application.my-sql.properties and pass those values in via the command line. From the documentation <a href="http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html" rel="nofollow noreferrer">here</a> I would expect something like the following to work. But strangely, it never gets these properties and runs the h2 database instead. </p>
  
  <pre><code>   java -jar myapp-0.0.1-SNAPSHOT.jar --spring.application.json='{"spring": {"datasource": {"url":"jdbc:mysql://localhost:3306/db", "username":"user","password":"pw"}}}'
  </code></pre>