| Modifier and Type | Method and Description |
|---|---|
static reactor.core.publisher.Mono<Document> |
loadDocument(String path,
String annotation)
loads a Document initialized with data from a given resource path.
|
static reactor.core.publisher.Mono<String> |
readFileFromClasspath(String url)
Read a
ClassPathResource into a reactor.core.publisher.Mono. |
public static reactor.core.publisher.Mono<String> readFileFromClasspath(String url)
ClassPathResource into a reactor.core.publisher.Mono.url - the resource to readMono emitting the resources content or an empty Mono on errorpublic static reactor.core.publisher.Mono<Document> loadDocument(String path, String annotation)
path - the path to load data fromannotation - the annotation that had the resource path definedCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.