|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2022 the original author or authors. |
| 2 | + * Copyright 2002-2023 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -602,15 +602,15 @@ else if (gsonPresent) {
|
602 | 602 | Class<?> type = MappingJackson2SmileHttpMessageConverter.class;
|
603 | 603 | RootBeanDefinition jacksonConverterDef = createConverterDefinition(type, source);
|
604 | 604 | GenericBeanDefinition jacksonFactoryDef = createObjectMapperFactoryDefinition(source);
|
605 |
| - jacksonFactoryDef.getPropertyValues().add("factory", new SmileFactory()); |
| 605 | + jacksonFactoryDef.getPropertyValues().add("factory", new RootBeanDefinition(SmileFactory.class)); |
606 | 606 | jacksonConverterDef.getConstructorArgumentValues().addIndexedArgumentValue(0, jacksonFactoryDef);
|
607 | 607 | messageConverters.add(jacksonConverterDef);
|
608 | 608 | }
|
609 | 609 | if (jackson2CborPresent) {
|
610 | 610 | Class<?> type = MappingJackson2CborHttpMessageConverter.class;
|
611 | 611 | RootBeanDefinition jacksonConverterDef = createConverterDefinition(type, source);
|
612 | 612 | GenericBeanDefinition jacksonFactoryDef = createObjectMapperFactoryDefinition(source);
|
613 |
| - jacksonFactoryDef.getPropertyValues().add("factory", new CBORFactory()); |
| 613 | + jacksonFactoryDef.getPropertyValues().add("factory", new RootBeanDefinition(CBORFactory.class)); |
614 | 614 | jacksonConverterDef.getConstructorArgumentValues().addIndexedArgumentValue(0, jacksonFactoryDef);
|
615 | 615 | messageConverters.add(jacksonConverterDef);
|
616 | 616 | }
|
|
0 commit comments