title: Unable to run springboot application with gradle bootrun
body: <p>Creating springboot application and i am unable to run it.</p>
  <p>Here is what my Application class looks like</p>
  <pre class="lang-java prettyprint-override"><code>@SpringBootApplication
  @EnableAutoConfiguration
  @ComponentScan
  @EnableConfigurationProperties
  public class ApplicationMain implements CommandLineRunner {
  
      @Autowired
      private CloudStorage cloudSt;
  
      public static void main(String[] args){
          SpringApplication app = new SpringApplication(ApplicationMain.class);
          app.run();
      }
  
      public void run(String... args) throws Exception {
          System.out.println(&quot;--------------&quot;);
          cloudSt.print();
      }
  }
  
  </code></pre>
  <p>I run this application by using command <code>gradle bootRun</code> and it gives following output</p>
  <pre class="lang-bash prettyprint-override"><code>❯ gradle bootRun
  
  &gt; Task :bootRun
  SLF4J: Failed to load class &quot;org.slf4j.impl.StaticLoggerBinder&quot;.
  SLF4J: Defaulting to no-operation (NOP) logger implementation
  SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
  
  BUILD SUCCESSFUL in 1s
  4 actionable tasks: 4 executed
  
  </code></pre>
  <p>Note there is no error.</p>
  <p><em>Note</em>: I am building an app which would be used as <code>Jar</code> file but i am testing this as a commandline app to verify if the properties are being injected properly or not. for reference, here is my <code>CloudStorage</code> bean</p>
  <pre class="lang-java prettyprint-override"><code>@Component
  @ConfigurationProperties(prefix = &quot;cloud.storage&quot;)
  public class CloudStorage {
      @Value(&quot;${accountName}&quot;)
      private String accountName;
  
      @Value(&quot;${key}&quot;)
      private String key;
  
      @Value(&quot;${containerName}&quot;)
      private String containerName;
  
      public AzureBlobDirectory getAzureRootDirectory() throws CloudStorageException {
          try {
              CloudStorageAccount cloudStorageAccount = CloudStorageAccount.parse(buildConnectionString(accountName, key));
              CloudBlobClient cloudBlobClient = cloudStorageAccount.createCloudBlobClient();
              return new AzureBlobDirectory(cloudBlobClient, containerName);
          } catch (URISyntaxException ex) {
              throw new CloudStorageException(ex);
          } catch (InvalidKeyException ex) {
              throw new CloudStorageException(ex);
          }
      }
  
      private String buildConnectionString(String accountName, String accountKey){
          return String.format(&quot;DefaultEndpointsProtocol=https;AccountName=%s;AccountKey=%s&quot;, accountName, accountKey);
      }
  
      public void print() {
          System.out.printf(&quot;%s --- %s --- %s\n&quot;, accountName, key, containerName);
      }
  }
  
  </code></pre>
  <ul>
  <li>Am i configuring my springboot application wrong?</li>
  <li>What am i missing here, why i don't see the print statements from my main class</li>
  </ul>