<!--The configuration file adds the configuration content of shiro--> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:com/zhuyu/resource/spring/application/applicationContext.xml classpath:com/zhuyu/resource/spring/shiro/shiro-context.xml </param-value> </context-param> <filter> <filter-name>shiroFilter</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> <!--The default value of this parameter is false, which means that the filter itself manages the life cycle. When the filter calls the init method, it initializes and destroys itself. If the life cycle needs to be managed by a framework like spring, set to true--> <init-param> <param-name>targetFilterLifecycle</param-name> <param-value>true</param-value> </init-param> </filter> <filter-mapping> <filter-name>shiroFilter</filter-name> <url-pattern>/roseadmin/rms/*</url-pattern> <url-pattern>*.jhtml</url-pattern> <url-pattern>*.html</url-pattern> <url-pattern>*.htm</url-pattern> </filter-mapping>
The use of web+spring
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=327069024&siteId=291194637
Ranking