title: Configuration Properties by @Autowired is null in Spring Boot
body: <p>I have a properties class</p>
  
  <pre><code>@ConfigurationProperties(prefix = ShiroProperties.SHIRO_PREFIX)
  public class ShiroProperties {
    public static final String SHIRO_PREFIX = "shiro";
  
    private String urlLogin;
    private String urlSuccessed;
  </code></pre>
  
  <p>and a Configuration class</p>
  
  <pre><code>@Configuration
  @EnableConfigurationProperties({ ShiroProperties.class })
  public class ShiroConfig implements ApplicationContextAware {
  
    ApplicationContext applicationContext;
    @Autowired
    private ShiroProperties shiroProperties ;
  </code></pre>
  
  <p>shiroProperties is null, but i can find it value in ShiroConfig used</p>
  
  <pre><code>applicationContext.getBean(ShiroProperties.class)
  </code></pre>
  
  <p>my Application class:</p>
  
  <pre><code>@SpringBootApplication
  public class Bootstrap {
    public static void main(String[] args) {
      SpringApplication.run(Bootstrap.class, args);
    }
  }
  </code></pre>
  
  <p>So weird, i can run success with similar code in other project, but this.</p>