shiro 和spring 整合之shiro配置

web.xml配置


	
	
		shiroFilter
		org.springframework.web.filter.DelegatingFilterProxy
		
		
			targetFilterLifecycle
			true
		
		
		
			targetBeanName
			shiroFilter
		
	
	
		shiroFilter
		/*
	


若需要开启shiro的注解支持,需要在springmvc.xml中开启



	
	
	
		
	



spring-shiro.xml配置



	
		
		
		
		
		
		
		
		
		
			
				
				
			
		
		
		
		
			
				
				/images/** = anon
				/js/** = anon
				/styles/** = anon
				
				/validatecode.jsp = anon
				
				
				/logout.action = logout
				
				
				
				/index.jsp  = user
				/first.action = user
				/welcome.jsp = user
				
				/** = authc
				
				
			
		
	



		
		
		
		
		
		
		
		
	



	
	




	
	




    	
    


    
        
        
        
        
    



	
		
		
		
		
		
		
 


	
		
	
	
	
		
		
		
		
	





你可能感兴趣的:(shiro 和spring 整合之shiro配置)