<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jhuxhorn" rel="nofollow">Joern Huxhorn</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7924?redirect=false" rel="nofollow">SPR-7924</a></strong> and commented</p>
<p dir="auto">org.springframework.web.servlet.config.AnnotationDrivenBeanDefinitionParser<br>
executes<br>
messageConverters.add(createConverterBeanDefinition(MappingJacksonHttpMessageConverter.class, source));<br>
at line 187 in spring-webmvc-3.0.5.RELEASE</p>
<p dir="auto">There is no way that I'm aware of to configure the created MappingJacksonHttpMessageConverter instance.</p>
<p dir="auto">I'd need to set the ObjectMapper of this instance so it's able to use my MixIn configuration (special handling of certain data types defined using serializationConfig.addMixInAnnotations or deserializationConfig.addMixInAnnotations) and other ObjectMapper configuration.</p>
<p dir="auto">Otherwise, serializing e.g. a java.awt.Dimension is guaranteed to explode.</p>
<p dir="auto">Is there any way to configure it that I'm missing? I searched quite extensive but couldn't find anything so far. Any workaround would be highly appreciated, even a hacky, temporary one...</p>
<p dir="auto">This issue may be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398102154" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11397" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11397/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11397">#11397</a>.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.5</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=swisswheel" rel="nofollow">Martin Zeltner</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1142?redirect=false" rel="nofollow">SPR-1142</a></strong> and commented</p>
<p dir="auto">Example:</p>
<p dir="auto">file1.xml:<br>
&lt;beans&gt;<br>
&lt;import resource="classpath:common/common-config.xml"/&gt;<br>
...<br>
&lt;/beans&gt;</p>
<p dir="auto">file2.xml:<br>
&lt;beans&gt;<br>
&lt;import resource="classpath:common/common-config.xml"/&gt;<br>
...<br>
&lt;/beans&gt;</p>
<p dir="auto">If I load now an application context which has "file1.xml" and "file2.xml" as config locations, the file "common-config.xml" will be loaded twice. I suggest to remember the url of already loaded config files.</p>
<p dir="auto">Thanks,<br>
Martin</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 1.2.1</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/16066/SPR-1142-xml-application-context-import-once-2010-01-05.patch" rel="nofollow">SPR-1142-xml-application-context-import-once-2010-01-05.patch</a> (<em>17.65 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398151337" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14160" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14160/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14160">#14160</a> Ignore duplicated import files or property-placeholder files</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398107814" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12263" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12263/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12263">#12263</a> When a bean definition is overridden, detect whether the definition has changed and log accordingly</li>
</ul>
<p dir="auto">67 votes, 52 watchers</p>