<!-- shiro 验证注解start -->
<bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator" depends-on="lifecycleBeanPostProcessor">
<property name="proxyTargetClass" value="true" />
</bean>
<bean class="org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor">
<property name="securityManager" ref="defaultWevSecurityManager" />
</bean>
<!-- shiro 验证注解over -->
在springmvc.xml 里面配置也就是说 和
<!-- 启用注解 -->
<context:annotation-config />
<!-- 包下的所有类进行扫描,以完成自动创建和注入依赖的功能 -->
<context:component-scan base-package="com.eluotuo" />
<context:component-scan base-package="com.eluotuo.*.*.action" />
<mvc:annotation-driven/> 包扫描配置到一个xml里面