Ожидается аргумент ненулевого типа
Код: Выделить всё
import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.RouterFunctions;
import org.springframework.web.reactive.function.server.ServerResponse;
import static org.springframework.web.reactive.function.server.RequestPredicates.GET;
@Configuration
public class WebConfig {
@Bean
public RouterFunction route() {
return RouterFunctions
.route(GET("/test"), req -> ServerResponse.status(HttpStatus.OK).build());
}
}
Мобильная версия