注释类型 DaoScan

    • 元素详细资料

      • value

        String[] value
        Alias for the basePackages() attribute. Allows for more concise annotation declarations e.g.: @DaoScan("org.my.pkg") instead of @DaoScan(basePackages = "org.my.pkg")}.
        返回:
        base package names
        默认值:
        {}
      • basePackages

        String[] basePackages
        Base packages to scan for MyBatis interfaces. Note that only interfaces with at least one method will be registered; concrete classes will be ignored.
        返回:
        base package names for scanning mapper interface
        默认值:
        {}
      • basePackageClasses

        Class<?>[] basePackageClasses
        Type-safe alternative to basePackages() for specifying the packages to scan for annotated components. The package of each class specified will be scanned.

        Consider creating a special no-op marker class or interface in each package that serves no purpose other than being referenced by this attribute.

        返回:
        classes that indicate base package for scanning mapper interface
        默认值:
        {}
      • dataSource

        String dataSource
        数据源,采用默认数据源
        默认值:
        "dataSource"