注释类型 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.
      • 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