Help Center/
Cloud Service Engine/
Best Practices/
ServiceComb Engines/
ServiceComb Engine Application Hosting/
Hosting Spring Cloud Applications Using Spring Cloud Huawei SDK/
FAQs/
Incompatibilities During Spring Boot Upgrade from 2.0.x.RELEASE to 2.3.x.RELEASE
Updated on 2022-11-14 GMT+08:00
Incompatibilities During Spring Boot Upgrade from 2.0.x.RELEASE to 2.3.x.RELEASE
FeignClient Name Issue
- Solutions
Use the new API to modify the code. For example, change new PageImpl to PageRequest.of and new Sort to Sort.of.
JPA Change: Multiple Entities Correspond to One Table
Mongo Client Upgrade Change
- Description
The MongoDbFactory API has changed and needs to be adjusted to the new version.
- Solutions
@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(); }
Parent topic: FAQs
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot