added warning about annotated controller interfaces (SPR-6655)

This commit is contained in:
Juergen Hoeller
2010-02-04 15:52:15 +00:00
parent 56e119e822
commit 5f166f6799
3 changed files with 21 additions and 2 deletions

View File

@@ -1390,6 +1390,15 @@ public class EditPetForm {
public class EditPetForm {
<lineannotation>// ...</lineannotation>
}</programlisting>
<note>
<para>When using controller interfaces (e.g. for AOP proxying), make sure to
consistently put <emphasis>all</emphasis> your mapping annotations - such as
<interfacename>@RequestMapping</interfacename> and
<interfacename>@SessionAttributes</interfacename> - on the controller
<emphasis>interface</emphasis> rather than on the implementation class.
</para>
</note>
</section>
<section id="mvc-ann-cookievalue">