title: Run a void setup method in Spring Context @Configuration
body: <p>I wish to perform a couple of setup methods within my Spring Context.</p>
  
  <p>I currently have the following code but it doesn't work as I am saying they are <code>beans</code> and have no return type.</p>
  
  <pre><code>@Configuration
  @Component
  public class MyServerContext {
  
      ...
  
      // Works
      @Bean
      public UserData userData() {
          UserData userData = new AWSUserDataFetcher(urlUtil()).fetchUserData();
          return userData;
      }   
  
      // Doesn't work
      @Bean
      public void setupKeyTrustStores() {
          // Setup TrustStore &amp; KeyStore
          System.setProperty(SYS_TRUST_STORE, userData().get(TRUST_STORE_PATH));
          System.setProperty(SYS_TRUST_STORE_PASSWORD, userData().get(TRUST_STORE_PASSWORD));
          System.setProperty(SYS_KEY_STORE, userData().get(KEY_STORE_PATH));
          System.setProperty(SYS_KEY_STORE_PASSWORD, userData().get(KEY_STORE_PASSWORD));
  
          // Prevents handshake alert: unrecognized_name
          System.setProperty(ENABLE_SNI_EXTENSION, "false");
      }
  
      ...
  
  }
  </code></pre>
  
  <p>How can I run this method automatically by the <code>@Configuration</code> context without the <code>@Bean</code> annotation?</p>