mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-22 03:52:15 +00:00
SEC-829: Minor doc fix
This commit is contained in:
parent
15b893f9ae
commit
2a4d859812
@ -526,7 +526,7 @@
|
|||||||
entire application context. You should only declare one <literal><global-method-security></literal> element.
|
entire application context. You should only declare one <literal><global-method-security></literal> element.
|
||||||
The following declaration would enable support for both types of annotations:
|
The following declaration would enable support for both types of annotations:
|
||||||
<programlisting><![CDATA[
|
<programlisting><![CDATA[
|
||||||
<global-method-security secured-annotations="enabled" jsr250-annotations="true"/>
|
<global-method-security secured-annotations="enabled" jsr250-annotations="enabled"/>
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
@ -536,9 +536,9 @@
|
|||||||
The use of <literal>protect-pointcut</literal> is particularly powerful, as it allows you to
|
The use of <literal>protect-pointcut</literal> is particularly powerful, as it allows you to
|
||||||
apply security to many beans with only a simple declaration. Consider the following example:
|
apply security to many beans with only a simple declaration. Consider the following example:
|
||||||
<programlisting><![CDATA[
|
<programlisting><![CDATA[
|
||||||
<global-method-security>
|
<global-method-security>
|
||||||
<protect-pointcut expression="execution(* com.mycompany.*Service.*(..))" access="ROLE_USER"/>
|
<protect-pointcut expression="execution(* com.mycompany.*Service.*(..))" access="ROLE_USER"/>
|
||||||
</global-method-security>
|
</global-method-security>
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
This will protect all methods on beans declared in the application context whose classes
|
This will protect all methods on beans declared in the application context whose classes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user