Annotation Type LocalServerPort
@Target({FIELD,METHOD,PARAMETER,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
@Value("${local.server.port}")
public @interface LocalServerPort
Annotation at the field or method/constructor parameter level that injects the HTTP
port that got allocated at runtime. Provides a convenient alternative for
@Value("${local.server.port}")
.- Since:
- 2.0.0
- Author:
- Anand Shah, Stephane Nicoll