<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=arjen.poutsma" rel="nofollow">Arjen Poutsma</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5690?redirect=false" rel="nofollow">SPR-5690</a></strong> and commented</p>
<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398094092" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10294" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10294/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10294">#10294</a>:</p>
<p dir="auto">It is useful to filter <code class="notranslate">@RequestMapping</code> method based on request headers, similarly to filtering by paramters. In effect, this feature would look something like:</p>
<p dir="auto"><code class="notranslate">@RequestMapping</code>(value = "/hotels", header = "content-type=text/*")</p>
<p dir="auto">This would match requests where the Content-Type header is 'text/plain', 'text/html', etc.</p>
<hr>
<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="398092899" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10107" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10107/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10107">#10107</a> <code class="notranslate">@RequestMapping</code> to narrow on Request Header details (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398084849" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9046" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9046/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9046">#9046</a> <code class="notranslate">@RequestMapping</code> narrowing based on presence of command object (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398094092" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10294" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10294/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10294">#10294</a> Content-type filtering in <code class="notranslate">@RequestMapping</code></li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/afa461892fa69851b4253ad18f88c21209e2eb81/hovercard" href="https://github.com/spring-projects/spring-framework/commit/afa461892fa69851b4253ad18f88c21209e2eb81"><tt>afa4618</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=newry" rel="nofollow">Ray</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9802?redirect=false" rel="nofollow">SPR-9802</a></strong> and commented</p>
<p dir="auto">We tried to upgrade Spring framework from 2.5.5 to 3.1.1, during performance test we found that TransactionInterceptor will add some performance overhead because introduce of following method:<br>
org.springframework.transaction.interceptor.TransactionAspectSupport.methodIdentification(java.lang.reflect.Method,java.lang.Class)</p>
<p dir="auto">This new method will call Class.getDeclaredMethods() instead of using the method passed in directly.</p>
<p dir="auto">If there are multiple transaction pointcuts defined and invoked in one call, the performance will be affected badly.</p>
<p dir="auto">Can we do fallback support as 2.5.5 or add cache support for the method instead of call Class.getDeclaredMethods() each time?</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.1</p>
<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="398154702" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14606" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14606/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14606">#14606</a> Performance degradation for after Spring 3 (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398105904" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11975" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11975/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11975">#11975</a> Transaction names should use the concrete class name</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/89b365120ad577bd5ad8007044991a2b6742304b/hovercard" href="https://github.com/spring-projects/spring-framework/commit/89b365120ad577bd5ad8007044991a2b6742304b"><tt>89b3651</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/2c8b7fe0935a5934d7b6357086b17f3ac45cb66c/hovercard" href="https://github.com/spring-projects/spring-framework/commit/2c8b7fe0935a5934d7b6357086b17f3ac45cb66c"><tt>2c8b7fe</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/49294c9d008ab63d3b33d708fc48b3f4321785db/hovercard" href="https://github.com/spring-projects/spring-framework/commit/49294c9d008ab63d3b33d708fc48b3f4321785db"><tt>49294c9</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/bbfc807b0c6e2b064c52368163255fdbd4d256cb/hovercard" href="https://github.com/spring-projects/spring-framework/commit/bbfc807b0c6e2b064c52368163255fdbd4d256cb"><tt>bbfc807</tt></a></p>
<p dir="auto">2 votes, 5 watchers</p>