org.springframework.context

## 接口 EnvironmentAware

- 所有超级接口:
    org.springframework.beans.factory.Aware
  所有已知实现类:
    ConfigurationClassPostProcessor, MBeanExportConfiguration, PropertySourcesPlaceholderConfigurer

      public interface EnvironmentAware
      extends org.springframework.beans.factory.Aware

  Interface to be implemented by any bean that wishes to be notified of the `Environment` that it runs in.
  从以下版本开始:
    3.1
  作者:
    Chris Beams
  另请参阅:
    `EnvironmentCapable`

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `setEnvironment(org.springframework.core.env.Environment environment)` Set the `Environment` that this component runs in.

- - ### 方法详细资料

    - #### setEnvironment

          void setEnvironment(org.springframework.core.env.Environment environment)

      Set the `Environment` that this component runs in.