weblogic配置修改java代码后不需要重启热部署方式

我用的是weblogic8.x 在项目的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>

将以上项目部署文件名替换字自己的部署文件名
如果增删改方法名以及参数还是需要重启weblogic


你可能感兴趣的:(weblogic)