api config_test.properties
web目录是编写代码目录
编译目录是执行代码之后实际生成 使用的目录
config_test.properties
file.basedir编译目录为输出使用目录
adminUser 为指定用户
网络超时
连接wifi
url编写错误
web.xml
<!-- ======================== 单点登录开始 ======================== -->
<!-- 用于单点退出,该过滤器用于实现单点登出功能,可选配置 -->
<listener>
<listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListener</listener-class>
</listener>
<!-- 该过滤器用于实现单点登出功能,可选配置。 -->
<filter>
<filter-name>CAS Single Sign Out Filter</filter-name>
<filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class>
<init-param>
<param-name>casServerUrlPrefix</param-name>
<param-value>http://elearning.latech.cc:7666/sso</param-value>
</init-param>
<init-param>
<param-name>serverName</param-name>
<param-value>http://localhost:8080</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CAS Single Sign Out Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- 该过滤器负责用户的认证工作,必须启用它 -->
<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://elearning.latech.cc:7666/sso/login</param-value>
<!--这里的server是服务端的IP -->
</init-param>
<init-param>
<param-name>serverName</param-name>
<param-value>http://localhost:8080</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CASFilter</filter-name>
<url-pattern>/login</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://elearning.latech.cc:7666/sso</param-value>
</init-param>
<init-param>
<param-name>serverName</param-name>
<param-value>http://localhost:8080</param-value>
</init-param>
<init-param>
<param-name>useSession</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>redirectAfterValidation</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>acceptAnyProxy</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>allowedProxyChains</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CAS Validation Filter</filter-name>
<url-pattern>/login</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>
<!-- 该过滤器使得开发者可以通过org.jasig.cas.client.util.AssertionHolder来获取用户的登录名。 比如AssertionHolder.getAssertion().getPrincipal().getName()。 -->
<filter>
<filter-name>CAS Assertion Thread Local Filter</filter-name>
<filter-class>org.jasig.cas.client.util.AssertionThreadLocalFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CAS Assertion Thread Local Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- ======================== 单点登录结束 ======================== -->
<!-- 静态资源 default为tomcat配置,FileServlet为weblogic配置-->
<servlet-mapping>
<servlet-name>default</servlet-name>
<!--<servlet-name>FileServlet</servlet-name>-->
<url-pattern>*.png</url-pattern>
<url-pattern>*.gif</url-pattern>
<url-pattern>*.jpg</url-pattern>
<url-pattern>*.jpeg</url-pattern>
<url-pattern>*.js</url-pattern>
<url-pattern>*.css</url-pattern>
<url-pattern>*.bmp</url-pattern>
<url-pattern>*.ttf</url-pattern>
<url-pattern>*.woff</url-pattern>
<url-pattern>*.eot</url-pattern>
<url-pattern>*.rar</url-pattern>
<url-pattern>*.zip</url-pattern>
<url-pattern>*.txt</url-pattern>
<url-pattern>*.html</url-pattern>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
app.properties
application.page_hidden=hidden
application.power=true
application.reportServerPort=8000
application.reportPath=report/oracle/
db_driver=oracle.jdbc.driver.OracleDriver
#db_driver=com.XDriver
db_url=jdbc:oracle:thin:@localhost:1521:tst
db_user=hbcmatc
db_pwd=123456
db_testsql=select 1 from dual
jdbc_dialect=oracle
#db_jndi=jdbc/hbcmatc
db_jndi=java:comp/env/jdbc/hbcmatc
#db_reportjndi=jdbc/hbcmatc
db_reportjndi=java:comp/env/jdbc/hbcmatc
application.leaveSeconds=60
application.delimiter= /
fileUploadBaseDir=${WEB_FILEPATH}/web/resource/
fileDownBaseDir=${WEB_FILEPATH}/web/resource/
testmode=false
masterIp=127.0.0.1
masterPort=80
cas.properties
cas=http://elearning.latech.cc:7666/sso
cas_login={cas}/login
#学习系统应用地址
cas_service=http://localhost:8080/edu
cas_logout={cas}/logout
cas01={cas}
cas02=
cas03=
cas04=
cas05=
cas06=
cas07=
cas08=
#修改登录模式,除了改此处外,还需要修改 applicationContext-security.xml 中的 <beans:import resource="/login-security-lms.xml"/>
#secmode=lms : login by lms
#secmode=cas : login by cas
secmode=cas
#登录退出后跳转到的页面:网站首页
first_page=http://localhost:8080/edu
config.properties
#lms系统的默认参数文件
#书写要求:目录末尾一律不带 / ,目录开头一律都带 / ,拼装文件路径时路径名和文件名之间加 /
#书写要求:引用直接使用大括号 { } 前面不要加 ${ }
###仅仅注释以“----”开头的参数才需要在项目实际情况进行调整###
################## 客户信息 #########################
#客户名称、版权信息都写在了这个位置:
#/web/common/navigator/navtree/allinclude.jsp
################## 全局参数配置开始 ##################
#----项目应用程序部署目录(实际物理路径),应该写到应用程序的发布目录
project_maindir=D:/svn-wrokspace/edu2/target/edu
bizflowdir={project_maindir}/WEB-INF/bizflow
#协同编辑文件夹路径
collaborativeDirPath={project_maindir}/web/resource/collaborativeDirs
teachplan_bizflow=teachplan_flow
trainnotice_bizflow=trainnotice_flow
finalbudget_bizflow=finalbudget_flow
trainbudget_bizflow=trainbudget_flow
#系统静态文件根目录(相对路径)
webstatic_basedir=/web/resource
################## 全局参数配置结束 ##################
################## 文件上传、下载配置开始 ##################
#上传相关的临时目录说明
# 表示上传后的临时目录(相对目录)
upload_tempdir=/web/temp
# 表示课件图片上传的相对目录
upload_lepic={webstatic_basedir}/course_pic
download_tempdir=/web/download_temp
################## 文件上传、下载配置结束 ##################
lms.properties
project_maindir=D:/svn-wrokspace/edu/out/artifacts/weather_lms_war_exploded