文档首页/
微服务引擎 CSE/
最佳实践/
ServiceComb引擎/
ServiceComb引擎托管应用/
通过Spring Cloud Huawei SDK托管Spring Cloud应用/
常见问题/
Spring boot从 2.0.x.RELEASE升级到2.3.x.RELEASE兼容性问题
更新时间:2022-09-27 GMT+08:00
Spring boot从 2.0.x.RELEASE升级到2.3.x.RELEASE兼容性问题
FeignClient名问题
Mongo client升级变更
- 问题描述
- 解决方案
@Bean public MappingMongoConverter mappingMongoConverter(MongoDbFactory factory, MongoMappingContext context, BeanFactory beanFactory) { DbRefResolver dbRefResolver = new DefaultDbRefResolver(factory); MappingMongoConverter mappingConverter = new MappingMongoConverter(dbRefResolver, context); mappingConverter.setCustomConversions(beanFactory.getBean(MongoCustomConversions.class)); // other customization return mappingConverter; } @Bean public MongoClientOptions mongoOptions() { return MongoClientOptions.builder().maxConnectionIdleTime(60000).socketTimeout(60000).build(); }
父主题: 常见问题