Annotation Type 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 hsql  
      boolean networkAccessible  
      org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase.Replace replace  
    • Element Detail

      • hsql

        boolean hsql
        Default:
        true
      • networkAccessible

        boolean networkAccessible
        Default:
        false
      • replace

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