Java ApacheShiro web应用程序索引页作为默认页
我是Apache Shiro web应用程序开发新手。我的web目录中有一个index.html,它作为login.htm的链接插入 我希望index.html成为我的默认页面,即当url类似于:Java ApacheShiro web应用程序索引页作为默认页,java,web-applications,web.xml,servlet-filters,shiro,Java,Web Applications,Web.xml,Servlet Filters,Shiro,我是Apache Shiro web应用程序开发新手。我的web目录中有一个index.html,它作为login.htm的链接插入 我希望index.html成为我的默认页面,即当url类似于: 本地主机:8080/myapp/ 或 localhost:8080/myapp/index.html 它应该显示index.html 如何使用url模式/*阻止shiro筛选器。我的意思是shiro不能过滤或处理index.html。 由于明显的原因,现在它继续重定向到login.htm,因
本地主机:8080/myapp/
或
localhost:8080/myapp/index.html
它应该显示index.html
如何使用url模式/*阻止shiro筛选器。我的意思是shiro不能过滤或处理index.html。
由于明显的原因,现在它继续重定向到login.htm,因为它通常在web.xml和shiro.ini中配置 web.xml
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
[urls]
/index.html = anon
/*={your mapping}