注释类型 EnableEmbeddedDatabase


  • @Target({TYPE,ANNOTATION_TYPE})
    @Retention(RUNTIME)
    @Documented
    @Import(io.microsphere.spring.test.jdbc.embedded.EmbeddedDataBaseBeanDefinitionRegistrar.class)
    @Repeatable(EnableEmbeddedDatabases.class)
    public @interface EnableEmbeddedDatabase
    Enable an embedded database
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    • 元素详细资料

      • dataSource

        java.lang.String dataSource
        返回:
        DataSource Bean Name
      • type

        EmbeddedDatabaseType type
        返回:
        Embedded Database Type, SQLite as default
        默认值:
        io.microsphere.spring.test.jdbc.embedded.EmbeddedDatabaseType.SQLITE
      • port

        int port
        JDBC connection port
        返回:
        if not specified port, return -1
        默认值:
        -1
      • primary

        boolean primary
        返回:
        Primary Bean or not
        默认值:
        false
      • properties

        java.lang.String[] properties
        返回:
        JDBC Properties Properties, Key-value
        默认值:
        {}