简体   繁体   English

热部署不适用于 Java Class Weblogic 12c 上的文件编辑

[英]Hot Deploy Does Not Work For Java Class File Edits On Weblogic 12c

I'm using Intellij Community edition I don't have the luxurary of using the Ultimate edition;我正在使用 Intellij 社区版我没有使用终极版的奢侈; Hence, I can't install the weblogic plugin.因此,我无法安装 weblogic 插件。 When I make edits to any class file it will not hot deploy to the server.当我对任何 class 文件进行编辑时,它不会热部署到服务器。 Is there a way to configure weblogic so that hot deploys are picked up.有没有办法配置 weblogic 以便获取热部署。

WLS has FastSwap, which is a hot redeploy feature, although has some limitations , and probably not as good as the mentioned plug-in. WLS 有 FastSwap,这是一个热重新部署功能,虽然有一些限制,并且可能没有提到的插件那么好。

TL;DR: To enable FastSwap in your application, add the following element to the weblogic-application.xml file. TL;DR:要在您的应用程序中启用 FastSwap,请将以下元素添加到weblogic-application.xml文件。

 <fast-swap>
    <enabled>true</enabled>
 </fast-swap>

more details at:更多详情请访问:

https://docs.oracle.com/middleware/1212/wls/DEPGD/deployunits.htm#DEPGD153 https://docs.oracle.com/middleware/1212/wls/DEPGD/deployunits.htm#DEPGD153

As an alternative you can try the Manik-Hotdeploy-Maven-Plugin作为替代方案,您可以尝试Manik-Hotdeploy-Maven-Plugin

Manik-Hot-Deploy is an Open Source Maven Plugin which brings hot-deploy to the development of web applications. Manik-Hot-Deploy 是一个开源 Maven 插件,它为 web 应用程序的开发带来了热部署。 This is independent form your IDE or Application server.这与您的 IDE 或应用程序服务器无关。 You just have to configure the target folders of your server.您只需配置服务器的目标文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM