title: Loading resources in PostConstruct method
body: <p>I'm having difficulties loading a resource file from a method annotated with @PostConstruct within a service.</p>
  
  <pre><code>@Service
      public class MyService {
  
      @Autowired
      ResourceLoader resourceLoader;
  
      //@Autowired
      //private ApplicationContext applicationContext;
  
      @PostConstruct
      public void initialize() {
  
          Resource res = resourceLoader.getResource("classpath*:myResource.csv");
          //Resource res = applicationContext.getResource("classpath*:myResource.csv");
  
          ... use loaded resource ...
  
      }
  
  }
  </code></pre>
  
  <p>I keep receiving the error <code>IllegalStateException: The resources may not be accessed if they are not currently started</code>.</p>
  
  <p>Where am I going wrong? Is it something with the order of bean initialization perhaps? </p>