amazon-web-services - 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;
}
解决方案
推荐阅读
- javascript - 如何在 React 中返回 Axios Post 的响应?
- javascript - 当我对子组件(如搜索栏)进行更改时,如何避免在 App 级别重新渲染?
- python - 我的部分代码已灰显
- openssl - 尝试使用 Openssl 验证 CSR 失败
- python - 在请求 lockf 独占锁时收到通知
- visual-studio - 在由 Powershell 触发的 Visual Studio 中运行项目
- r - 如何在 RStudio 中使用 Shiny 制作交互式绘图
- ruby - 将 repl.rb 中的 puts 语句打印到 logs/log.txt
- javascript - React 如何在 SwiperSlide 中接收有关当前卡片的信息
- google-chrome - 在 localhost 上打开开发工具时会删除 Cookie