Spring cloud WebFlux 重定向和Spring boot 重定向写法区别
WebFlux :
@Component
@Slf4j
public class UrlController {
@Bean
RouterFunction<ServerResponse> routerFunction() {
return route(GET("/s/{number}"), req -> {
String shortNumber = req.pathVariable("number");
原创
2021-09-23 15:47:14 ·
440 阅读 ·
0 评论