领先一步
VMware 提供培训和认证,助您加速进步。
了解更多Spring Cloud Function 是一个具有以下高级目标的框架:
它抽象了所有传输细节和基础设施,允许开发人员保留所有熟悉的工具和流程,并专注于业务逻辑。
Spring Cloud Function 特性
这是一个完整的、可执行的、可测试的 Spring Boot 应用程序(实现简单的字符串操作)
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@Bean
public Function<Flux<String>, Flux<String>> uppercase() {
return flux -> flux.map(value -> value.toUpperCase());
}
}