org.springframework.boot.rsocket.context

Annotation Type LocalRSocketServerPort



  • @Target(value={FIELD,METHOD,PARAMETER,ANNOTATION_TYPE})
     @Retention(value=RUNTIME)
     @Documented
     @Value(value="${local.rsocket.server.port}")
    public @interface LocalRSocketServerPort
    Annotation at the field or method/constructor parameter level that injects the RSocket port that got allocated at runtime. Provides a convenient alternative for @Value("${local.rsocket.server.port}").
    Since:
    2.2.0