mirror of
				https://github.com/spring-projects/spring-security.git
				synced 2025-10-30 22:28:46 +00:00 
			
		
		
		
	Add <intercept-methods> to example, but it is disabled in favour of @Secured annotation. Still, we include it so people can have a play around and switch between the two syntaxes easily in demos etc.
This commit is contained in:
		
							parent
							
								
									55e4568003
								
							
						
					
					
						commit
						09f68400ec
					
				| @ -14,6 +14,11 @@ http://www.springframework.org/schema/security http://www.springframework.org/sc | ||||
| 
 | ||||
| 	<bean id="bankService" class="bigbank.BankServiceImpl"> | ||||
| 		<constructor-arg ref="bankDao"/> | ||||
|         <!-- This will add a security interceptor to the bean | ||||
|         <security:intercept-methods> | ||||
|             <security:protect method="bigbank.BankService.*" access="IS_AUTHENTICATED_REMEMBERED" /> | ||||
|             <security:protect method="bigbank.BankService.post" access="ROLE_TELLER" /> | ||||
|         </security:intercept-methods>  --> | ||||
| 	</bean> | ||||
| 
 | ||||
| </beans> | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user