spring mvc使用Servlet3异步要注意的几个问题
- - 企业架构 - ITeye博客1、注意添加 true . 在web.xml中对DispatcherServlet添加true . 2、如果集成了shiro一定要注意在mapping中增加dispatcher项,否则会抛出org.apache.shiro.UnavailableSecurityManagerException异常.
<async-supported>true</async-supported>在web.xml中对DispatcherServlet添加<async-supported>true</async-supported>
<filter-mapping>
<filter-name>shiroFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ASYNC</dispatcher>
</filter-mapping>