1 Star 0 Fork 121

zengshuai/JFinalShiroPlugin

forked from 李飞/JFinalShiroPlugin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
web.xml 2.57 KB
一键复制 编辑 原始数据 按行查看 历史
lifei_osc 提交于 2015-08-03 04:15 . 添加实际例子代码
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>wellbole</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.do</welcome-file>
</welcome-file-list>
<session-config>
<session-timeout>30</session-timeout>
<cookie-config>
<path>/</path>
<http-only>true</http-only>
<secure>false</secure>
</cookie-config>
<tracking-mode>COOKIE</tracking-mode>
</session-config>
<listener>
<listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
</listener>
<filter>
<filter-name>shiro</filter-name>
<filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>shiro</filter-name>
<url-pattern>*.do</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<filter>
<filter-name>jfinal</filter-name>
<filter-class>com.jfinal.core.JFinalFilter</filter-class>
<init-param>
<param-name>configClass</param-name>
<param-value>com.wellbole.web.core.WebAppConfig</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>jfinal</filter-name>
<url-pattern>*.do</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>jfinal</filter-name>
<url-pattern>/druid/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<error-page>
<error-code>404</error-code>
<location>/WEB-INF/errors/404.html</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/WEB-INF/errors/500.html</location>
</error-page>
<error-page>
<error-code>414</error-code>
<location>/WEB-INF/errors/414.html</location>
</error-page>
<error-page>
<error-code>505</error-code>
<location>/WEB-INF/errors/505.html</location>
</error-page>
<error-page>
<error-code>400</error-code>
<location>/WEB-INF/errors/400.html</location>
</error-page>
<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>/WEB-INF/errors/error.html</location>
</error-page>
</web-app>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/izengshuai/jfinalshiroplugin.git
git@gitee.com:izengshuai/jfinalshiroplugin.git
izengshuai
jfinalshiroplugin
JFinalShiroPlugin
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385