Annotation Interface AutoConfigureTestDb


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Inherited @ImportAutoConfiguration @PropertyMapping("spring.test.database") public @interface AutoConfigureTestDb
Annotation that can be applied to a test class to configure a test database to use.
Author:
Jeff Fischer
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
    boolean
     
    org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase.Replace
     
  • Element Details

    • hsql

      boolean hsql
      Default:
      true
    • networkAccessible

      boolean networkAccessible
      Default:
      false
    • replace

      org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase.Replace replace
      Default:
      NONE