File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4162,6 +4162,7 @@ In Java config, customize requested content type resolution:
4162
4162
@Override
4163
4163
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
4164
4164
configurer.mediaType("json", MediaType.APPLICATION_JSON);
4165
+ configurer.mediaType("xml", MediaType.APPLICATION_XML);
4165
4166
}
4166
4167
}
4167
4168
----
@@ -4212,7 +4213,7 @@ Below is an example that adds Jackson JSON and XML converters with a customized
4212
4213
.dateFormat(new SimpleDateFormat("yyyy-MM-dd"))
4213
4214
.modulesToInstall(new ParameterNamesModule());
4214
4215
converters.add(new MappingJackson2HttpMessageConverter(builder.build()));
4215
- converters.add(new MappingJackson2XmlHttpMessageConverter(builder.xml( ).build()));
4216
+ converters.add(new MappingJackson2XmlHttpMessageConverter(builder.createXmlMapper(true ).build()));
4216
4217
}
4217
4218
}
4218
4219
----
@@ -4389,7 +4390,7 @@ In Java config simply add the respective "Configurer" bean:
4389
4390
@Bean
4390
4391
public FreeMarkerConfigurer freeMarkerConfigurer() {
4391
4392
FreeMarkerConfigurer configurer = new FreeMarkerConfigurer();
4392
- configurer.setTemplateLoaderPath("/WEB-INF/ ");
4393
+ configurer.setTemplateLoaderPath("/freemarker ");
4393
4394
return configurer;
4394
4395
}
4395
4396
}
@@ -4683,7 +4684,7 @@ hook of the Spring `ApplicationContext`:
4683
4684
----
4684
4685
4685
4686
Note that `MyPostProcessor` needs to be declared as a bean either explicitly in XML or
4686
- detected through a `<component scan/>` declaration.
4687
+ detected through a `<component- scan/>` declaration.
4687
4688
4688
4689
4689
4690
You can’t perform that action at this time.
0 commit comments