title: How to get the value from system property in spring boot
body: <p>I am using following command to run my spring boot application</p>
  
  <pre><code>java -Dlibrary.system.property=value -jar myapp.jar
  </code></pre>
  
  <p>Currently, I am able to access it via following command like below</p>
  
  <pre><code>System.getProperty("library.system.property")
  </code></pre>
  
  <p>However I need to access it via any annotation in Spring something like </p>
  
  <p><code>@value(${library.system.property})</code></p>
  
  <p>I tried to use </p>
  
  <pre><code>    @Value("${library.system.property")
      private String property;
  
      @Bean
      public SampleProvider getSampleProvider () {
          return SampleProvider.from(property);
      }
  </code></pre>
  
  <p>But the value of the property is <code>null</code>. Do I need to use conditional bean or something?</p>