注释类型 SpringBootTest

    • 元素详细资料

      • properties

        @AliasFor("value")
        String[] properties
        Properties in form key=value that should be added to the Spring Environment before the test runs.
        返回:
        the properties to add
        默认值:
        {}
      • classes

        Class<?>[] classes
        The annotated classes to use for loading an ApplicationContext. Can also be specified using @ContextConfiguration(classes=...). If no explicit classes are defined the test will look for nested @Configuration classes, before falling back to a SpringBootConfiguration search.
        返回:
        the annotated classes used to load the application context
        另请参阅:
        ContextConfiguration.classes()
        默认值:
        {}