@ConditionalOnMissingBean(ObjectMapper.class)
时间: 2024-01-24 10:49:19 浏览: 126
@ConditionalOnMissingBean(ObjectMapper.class)是一个注解,它的作用是在一个bean被注册后,如果后面注册了相同类型的bean,就不会成功。它确保了这个类型的bean只有一个实例。当出现相同的bean时,使用@ConditionalOnMissingBean注解会出现异常。 <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [jackson 中对null的处理](https://blog.csdn.net/weixin_45289374/article/details/115121485)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [SpringBoot使用Jackson序列化反序列化配置](https://blog.csdn.net/hcksust/article/details/112427476)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文