首页 > 解决方案 > Spring Cloud Function 添加函数路径

问题描述

我有这个功能,我想配置它的路径,比如在 Postman 中运行本地时,域将是 http://localhost:8004/handleGpayNapas,有没有办法将它更改或映射到像 http:/ 这样的 URL /localhost:8004/handle/Gpay/Napas...

@Bean
    public Function<Map<String, Object>, Map<String, Object>> handleGpayNapas() {
        return handleRequestGpayNapas::createEvent;
    }

标签: amazon-web-servicesaws-lambdaspring-cloud-function

解决方案


推荐阅读