## 类的使用
org.springframework.context.annotation.AdviceMode

- 使用AdviceMode的程序包
  程序包 | 说明
  --- | ---
  org.springframework.cache.annotation | Annotations and supporting classes for declarative cache management.
  org.springframework.context.annotation | Annotation support for the Application Context, including JSR-250 "common" annotations, component-scanning, and Java-based metadata for creating Spring-managed objects.
  org.springframework.scheduling.annotation | Java 5 annotation for asynchronous method execution.

- - ### org.springframework.cache.annotation中AdviceMode的使用

    参数类型为AdviceMode的org.springframework.cache.annotation中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `String[]` | CachingConfigurationSelector.`selectImports(AdviceMode adviceMode)` Returns `ProxyCachingConfiguration` or `AspectJCachingConfiguration` for `PROXY` and `ASPECTJ` values of `EnableCaching.mode()`, respectively.

  - ### org.springframework.context.annotation中AdviceMode的使用

    返回AdviceMode的org.springframework.context.annotation中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static AdviceMode` | AdviceMode.`valueOf(String name)` 返回带有指定名称的该类型的枚举常量。
    `static AdviceMode[]` | AdviceMode.`values()` 按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。

    参数类型为AdviceMode的org.springframework.context.annotation中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected abstract String[]` | AdviceModeImportSelector.`selectImports(AdviceMode adviceMode)` Determine which classes should be imported based on the given `AdviceMode`.

  - ### org.springframework.scheduling.annotation中AdviceMode的使用

    参数类型为AdviceMode的org.springframework.scheduling.annotation中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `String[]` | AsyncConfigurationSelector.`selectImports(AdviceMode adviceMode)` Returns `ProxyAsyncConfiguration` or `AspectJAsyncConfiguration` for `PROXY` and `ASPECTJ` values of `EnableAsync.mode()`, respectively.