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:
@@ -13,5 +13,5 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"lastUpdated": 1775498241052
|
||||
"lastUpdated": 1775501968801
|
||||
}
|
||||
Reference in New Issue
Block a user