fix(rabbitmq): 修复Spring Boot启动时objectMapper bean冲突

- 取消了RabbitMQConfig中通过方法参数注入ObjectMapper,避免重复定义bean
- 在messageConverter方法内新建ObjectMapper实例,独立配置序列化选项
- 在application.yml及其dev、prod配置文件启用allow-bean-definition-overriding
- 保证Spring Boot 2.5.15环境中bean定义覆盖正常,解决启动失败问题
- 修复后确保MQ消息队列和扫码登录功能正常运行
This commit is contained in:
2026-04-07 03:05:34 +08:00
parent 04ec9659b0
commit 3e7f34fa0d
6 changed files with 63 additions and 7 deletions

View File

@@ -13,5 +13,5 @@
}
]
},
"lastUpdated": 1775498241052
"lastUpdated": 1775501968801
}