Browse Source

<global-method-security> -> <method-security>

Rob Winch 1 month ago
parent
commit
b99476c2fc

+ 2 - 2
servlet/xml/java/contacts/src/main/resources/applicationContext-security.xml

@@ -13,9 +13,9 @@
 	xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
 	xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
 						http://www.springframework.org/schema/security https://www.springframework.org/schema/security/spring-security.xsd">
 						http://www.springframework.org/schema/security https://www.springframework.org/schema/security/spring-security.xsd">
 
 
-	<global-method-security pre-post-annotations="enabled">
+	<method-security>
 		<expression-handler ref="expressionHandler"/>
 		<expression-handler ref="expressionHandler"/>
-	</global-method-security>
+	</method-security>
 
 
 	<http realm="Contacts Realm">
 	<http realm="Contacts Realm">
 		<intercept-url pattern="/" access="permitAll"/>
 		<intercept-url pattern="/" access="permitAll"/>