我看了下面这个关于shiro的案例,并没有涉及到web.xml的配置问题,是插件已经通过代码实现了吗?
http://nutzbook.wendal.net/dev_prepare/add_shiro.html
没有如下配置
<listener>
<listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
</listener>
<filter>
<filter-name>ShiroFilter</filter-name>
<!-- filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class -->
<!-- 原生ShiroFilter,每次请求都会touch一次session,导致session持久化的时候压力非常大.ShiroFilter2能解决这个问题 -->
<filter-class>org.nutz.integration.shiro.ShiroFilter2</filter-class>
</filter>
<filter-mapping>
<filter-name>ShiroFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>