Spring配置数据库和shiro安全机制

<context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>classpath*:beans.xml,classpath*:wolf-shiro.xml</param-value>
 </context-param>

 

 <filter>
  <filter-name>shiroFilter</filter-name>
  <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
  <init-param>
   <param-name>targetFilterLifecycle</param-name>
   <param-value>true</param-value>
  </init-param>
 </filter>

 <filter-mapping>
  <filter-name>shiroFilter</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>

 <listener>
  <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
 </listener>

 

你可能感兴趣的:(Spring配置数据库和shiro安全机制)