注释类型 AutoConfigureTestDatabase

    • 可选元素概要

      可选元素 
      修饰符和类型可选元素说明
      org.springframework.boot.autoconfigure.jdbc.EmbeddedDatabaseConnectionconnection
      已过时。
      The type of connection to be established when replacing the data source.
      AutoConfigureTestDatabase.Replacereplace
      已过时。
      Determines what type of existing DataSource beans can be replaced.
    • 元素详细资料

      • replace

        AutoConfigureTestDatabase.Replace replace
        已过时。
        Determines what type of existing DataSource beans can be replaced.
        返回:
        the type of existing DataSource to replace
        默认值:
        org.springframework.boot.test.autoconfigure.orm.jpa.AutoConfigureTestDatabase.Replace.ANY
      • connection

        org.springframework.boot.autoconfigure.jdbc.EmbeddedDatabaseConnection connection
        已过时。
        The type of connection to be established when replacing the data source. By default will attempt to detect the connection based on the classpath.
        返回:
        the type of connection to use
        默认值:
        org.springframework.boot.autoconfigure.jdbc.EmbeddedDatabaseConnection.NONE