mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-12 07:02:13 +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.
|
||||
The following declaration would enable support for both types of annotations:
|
||||
<programlisting><![CDATA[
|
||||
<global-method-security secured-annotations="enabled" jsr250-annotations="true"/>
|
||||
<global-method-security secured-annotations="enabled" jsr250-annotations="enabled"/>
|
||||
]]>
|
||||
</programlisting>
|
||||
</para>
|
||||
@ -536,9 +536,9 @@
|
||||
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:
|
||||
<programlisting><![CDATA[
|
||||
<global-method-security>
|
||||
<global-method-security>
|
||||
<protect-pointcut expression="execution(* com.mycompany.*Service.*(..))" access="ROLE_USER"/>
|
||||
</global-method-security>
|
||||
</global-method-security>
|
||||
]]>
|
||||
</programlisting>
|
||||
This will protect all methods on beans declared in the application context whose classes
|
||||
|
Loading…
x
Reference in New Issue
Block a user