added warning about annotated controller interfaces (SPR-6655)

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2923 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller
2010-02-04 15:52:15 +00:00
parent 92fddc10aa
commit 86512f5927
3 changed files with 21 additions and 2 deletions
+9
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">