我用的是weblogic11g 在项目的web-info中创建weblogic.xml
?
----------将一下内容复制到weblogic.xml中-----------
?
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
<session-descriptor>
<session-param>
<param-name>TimeoutSecs</param-name>
<param-value>300</param-value>
</session-param>
<session-param>
<param-name>CookieName</param-name>
<param-value>写自己的项目部署文件名</param-value>
</session-param>
</session-descriptor>
<jsp-descriptor>
<jsp-param>
<param-name>keepgenerated</param-name>
<param-value>true</param-value>
</jsp-param>
<jsp-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</jsp-param>
<jsp-param>
<param-name>pageCheckSeconds</param-name>
<param-value>0</param-value>
</jsp-param>
</jsp-descriptor>
<container-descriptor>
<servlet-reload-check-secs>-1</servlet-reload-check-secs>
<!-- <prefer-web-inf-classes>true</prefer-web-inf-classes>-->
</container-descriptor>
<charset-params>
<input-charset>
<resource-path>/*</resource-path>
<java-charset-name>utf-8</java-charset-name>
</input-charset>
</charset-params>
<context-root>写自己项目的部署文件名</context-root>
</weblogic-web-app>