title: Spring Cloud Dataflow Set System Properties
body: <p>I have written a custom spring cloud stream sink application that starts up when I run it as a spring boot project in eclipse. When I deploy my application I need to pass in some system proeprties. See below.</p>
  
  <pre><code>@ComponentScan
  @EnableConfigurationProperties(MyProperties.class)
  @SpringBootApplication
  public class MyApplication {//extends SpringBootServletInitializer{
  
      public static final String COMPONENT_NAME = "my-application";
  
  
      @Autowired
      private MyProperties properties;
  
      public static void main(String[] args) {
          System.setProperty("server.env", "DEVT1");
          System.setProperty("some.other.var", "foo");
          SpringApplication.run(MyApplication.class, args);
      }
  </code></pre>
  
  <p>I am trying to pass these system properties into dataflow using the Deployment Properties screen, picture below.  I am wondering if I pass one of these if it is working. It seems like my application starts up but is looking for the other property. When I try passing both I get this weird error saying the main class can not be found. So when I pass one my application seems to get farther. Am I close to being on the right track? Do I need to separate the arguments some way? I tried with commas but it didn't seem to make a difference.</p>
  
  <p>Error when passing two arguments - </p>
  
  <blockquote>
    <p>Error: Could not find or load main class
    LURzZXJ2ZXIuZW52PVBEMDYsLURBbWljYV9RdWV1ZV9NYW5hZ2Vycz1HV0QwNiwtRGNmZ21nci5jbGFzcy5wYXRoPVxhbWljYS5jb20MaWxlcxtudmNvbmZpZwdwcHJlc291cmNlcw==</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/iFNWz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iFNWz.png" alt="enter image description here"></a></p>