接口 AnnotationConfigRegistry

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      voidregister​(Class<?>... annotatedClasses)
      Register one or more annotated classes to be processed.
      voidscan​(String... basePackages)
      Perform a scan within the specified base packages.
    • 方法详细资料

      • register

        void register​(Class<?>... annotatedClasses)
        Register one or more annotated classes to be processed.

        Calls to register are idempotent; adding the same annotated class more than once has no additional effect.

        参数:
        annotatedClasses - one or more annotated classes, e.g. @Configuration classes
      • scan

        void scan​(String... basePackages)
        Perform a scan within the specified base packages.
        参数:
        basePackages - the packages to check for annotated classes