axon - 使用 Spring boot servlet contextPath 然后 DistributedCommandBus: 404
问题描述
我有两个 SpringBootApplication,A 和 B。A 发送命令,B 处理命令。
当 B 以非空开头时server.servlet.context-path
,当 A 发送命令时显示异常
An error occurred while trying to dispatch a command on the DistributedCommandBus: 404 null
我将命令路由器配置为:
SpringCloudCommandRouter.builder().localServiceInstance(registration).discoveryClient(discoveryClient).routingStrategy(new AnnotationRoutingStrategy()).build()
尝试在以下位置发送命令时发生错误:
DistributedCommandBus: 404 null
解决方案
推荐阅读
- python - 有没有办法将数据库唯一值变成单个变量?
- spring - 如何模拟 HttpServletRequest getParameter 解码行为?
- php - 停用插件后将 WooCommerce 订单状态更改为已完成
- postgresql - Postgres 13 中的 tsrange 字段占用多少字节?(列俄罗斯方块)
- nlp - 删除停用词
- cookies - 如果名称相同但域不同,则 cookie 优先级
- python - PyPDF2 帮助打印页面数组
- git - git 问题:继续将主分支更改拉入从功能分支分支出来的单个开发分支是否更好?
- checkbox - 试图将 4 个复选框的值加在一起
- javascript - Flask:如何根据房间在 Flask 中添加聊天记录?