Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jfV5portal
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
管理员
jfV5portal
Commits
d53e2721
Commit
d53e2721
authored
Sep 25, 2018
by
周王清
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加web.xml
parent
5b52f90e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
174 additions
and
0 deletions
+174
-0
web.xml
WebContent/WEB-INF/web.xml
+174
-0
No files found.
WebContent/WEB-INF/web.xml
0 → 100644
View file @
d53e2721
<?xml version="1.0" encoding="UTF-8"?>
<web-app
id=
"WebApp_ID"
version=
"2.4"
xmlns=
"http://java.sun.com/xml/ns/j2ee"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
>
<display-name>
jfV5portal
</display-name>
<context-param>
<param-name>
webAppRootKey
</param-name>
<param-value>
jfV5portal.root
</param-value>
</context-param>
<context-param>
<!-- log4j配置文件位置 -->
<param-name>
log4jConfigLocation
</param-name>
<param-value>
/WEB-INF/conf/gaowj/bl/log4j.properties
</param-value>
</context-param>
<context-param>
<param-name>
log4jRefreshInterval
</param-name>
<param-value>
6000
</param-value>
</context-param>
<!-- log4j监听器 -->
<listener>
<listener-class>
org.springframework.web.util.Log4jConfigListener
</listener-class>
</listener>
<context-param>
<param-name>
contextConfigLocation
</param-name>
<param-value>
/WEB-INF/conf/gaowj/bl/applicationContext-business.xml
</param-value>
</context-param>
<!-- 启用Web监控统计功能 -->
<filter>
<filter-name>
DruidWebStatFilter
</filter-name>
<filter-class>
com.alibaba.druid.support.http.WebStatFilter
</filter-class>
<init-param>
<param-name>
exclusions
</param-name>
<param-value>
*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*
</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>
DruidWebStatFilter
</filter-name>
<url-pattern>
/*
</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>
DruidStatView
</servlet-name>
<servlet-class>
com.alibaba.druid.support.http.StatViewServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
DruidStatView
</servlet-name>
<url-pattern>
/druid/*
</url-pattern>
</servlet-mapping>
<!-- spring监听器-->
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<!-- spring监听器,使用scrope=request 时必须加上-->
<listener>
<listener-class>
org.springframework.web.context.request.RequestContextListener
</listener-class>
</listener>
<listener>
<listener-class>
com.gaowj.business.listener.myHttpSessionAttributeListener
</listener-class>
</listener>
<!-- 该过滤器负责用户的认证工作,必须启用它 -->
<filter>
<filter-name>
CASFilter
</filter-name>
<filter-class>
org.jasig.cas.client.authentication.AuthenticationFilter
</filter-class>
<init-param>
<param-name>
casServerLoginUrl
</param-name>
<param-value>
http://cas.jfbrother.com/cas-jfsso/login
</param-value>
<!-- cas 服务器登录 地址 http://IP:PORT/CasWebProName/login -->
</init-param>
<init-param>
<!-- 这里的server是服务端的IP -->
<param-name>
serverName
</param-name>
<param-value>
http://localhost:8080
</param-value>
<!-- 客户端服务器地址 http://IP:PORT -->
</init-param>
</filter>
<filter-mapping>
<filter-name>
CASFilter
</filter-name>
<url-pattern>
/jfcas
</url-pattern>
<!-- <url-pattern>/*</url-pattern> -->
</filter-mapping>
<!-- 该过滤器负责对Ticket的校验工作,必须启用它 -->
<filter>
<filter-name>
CAS Validation Filter
</filter-name>
<filter-class>
org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter
</filter-class>
<init-param>
<param-name>
casServerUrlPrefix
</param-name>
<param-value>
http://cas.jfbrother.com/cas-jfsso
</param-value>
<!-- cas 服务器地址 http://IP:PORT/CasWebProName -->
</init-param>
<init-param>
<param-name>
serverName
</param-name>
<param-value>
http://localhost:8080
</param-value>
<!-- 客户端服务器地址 http://IP:PORT -->
</init-param>
</filter>
<filter-mapping>
<filter-name>
CAS Validation Filter
</filter-name>
<url-pattern>
/jfcas
</url-pattern>
</filter-mapping>
<!-- 该过滤器负责实现HttpServletRequest请求的包裹,
比如允许开发者通过HttpServletRequest的getRemoteUser()方法获得SSO登录用户的登录名,可选配置。 -->
<filter>
<filter-name>
CAS HttpServletRequest Wrapper Filter
</filter-name>
<filter-class>
org.jasig.cas.client.util.HttpServletRequestWrapperFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>
CAS HttpServletRequest Wrapper Filter
</filter-name>
<url-pattern>
/*
</url-pattern>
</filter-mapping>
<!-- 单点注销监听器 -->
<listener>
<listener-class>
org.jasig.cas.client.session.SingleSignOutHttpSessionListener
</listener-class>
</listener>
<!-- 单点注销过滤器 -->
<filter>
<filter-name>
caslogoutFilter
</filter-name>
<filter-class>
org.jasig.cas.client.session.SingleSignOutFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>
caslogoutFilter
</filter-name>
<url-pattern>
/*
</url-pattern>
</filter-mapping>
<filter>
<filter-name>
struts2
</filter-name>
<filter-class>
com.gaowj.business.filter.myStrutsPrepareAndExecuteFilter
</filter-class>
<!-- org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter//com.gaowj.business.filter.myStrutsPrepareAndExecuteFilter -->
</filter>
<filter-mapping>
<filter-name>
struts2
</filter-name>
<url-pattern>
/*
</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>
initServlet
</servlet-name>
<servlet-class>
com.gaowj.business.util.InitServlet
</servlet-class>
<load-on-startup>
2
</load-on-startup>
</servlet>
<!-- 是否允许同一帐号多地登陆,为1则允许,为0则不允许-->
<context-param>
<param-name>
MultiUserLogin
</param-name>
<param-value>
1
</param-value>
</context-param>
<!-- 是否启用验证码,为1则启用,其它数字默认为不启用-->
<context-param>
<param-name>
yzm
</param-name>
<param-value>
1
</param-value>
</context-param>
<session-config>
<session-timeout>
60
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
cas.jsp
</welcome-file>
</welcome-file-list>
<error-page>
<error-code>
404
</error-code>
<location>
/system/pages/error/error404.jsp
</location>
</error-page>
<error-page>
<error-code>
500
</error-code>
<location>
/system/pages/error/error50x.jsp
</location>
</error-page>
</web-app>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment