Annotation Interface AutoConfigureWebServer
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Inherited
@AutoConfigureJson
@ImportAutoConfiguration
public @interface AutoConfigureWebServer
Auto-configuration imports for starting and embedded
web server for tests. Commonly used with @SpringBootTest when
classes are specified and the webEnvironment attribute is
RANDOM_PORT or DEFINED_PORT.- Since:
- 4.1.0
- Author:
- Phillip Webb