[英]Can I avoid redeployment of a project in WebLogic, if I only change JSPs?
I have a project that runs inside the WebLogic server. 我有一个在WebLogic服务器中运行的项目。 80 % of changes I do to the code affect JSP files only (not the class files).
我对代码所做的80%的更改仅影响JSP文件(而不影响类文件)。 Those JSP files contain the frontend logic.
这些JSP文件包含前端逻辑。
Whenever I change the JSP page, I need to do the following steps to see my changes: 每当更改JSP页面时,都需要执行以下步骤来查看更改:
mvn install
inside the source directory. mvn install
在源目录中。 Is it possible to avoid these two steps, if the only thing I change are JSP files (I don't touch Java files therefore, no class files are modified)? 如果我唯一要更改的是JSP文件(我不接触Java文件,因此不修改任何类文件),是否可以避免这两个步骤?
Note that the application in question is set up in WebLogic so that it reads the directory with the class files ( myProject/target
), not a WAR file. 请注意,有问题的应用程序是在WebLogic中设置的,以便它读取包含类文件(
myProject/target
)而不是WAR文件的目录。
I have no definite information whether or not JRebel supports WebLogic. 我没有确切的信息JRebel是否支持WebLogic。 Its only alternative known to me, DCEVM , does not support WebLogic according to the last statement here .
根据此处的最后一条语句,我所知的唯一选择DCEVM不支持WebLogic。
Update 1 (02.05.2018 15:23 MSK): Changing 更新1(02.05.2018 15:23 MSK):更改
<wls:resource-reload-check-secs>-1</wls:resource-reload-check-secs>
to 至
<wls:resource-reload-check-secs>1</wls:resource-reload-check-secs>
in myProject/src/main/webapp/WEB-INF/weblogic.xml
didn't help. 在
myProject/src/main/webapp/WEB-INF/weblogic.xml
中没有帮助。 When I deploy the application, then make a change to a JSP file, then run mvn install
, the changes do not take effect. 部署应用程序时,对JSP文件进行更改,然后运行
mvn install
,更改不会生效。
There is page-check-seconds properties in weblogic.xml (beside others). 在weblogic.xml中(其他旁边)有page-check-seconds属性。 Take a look at "weblogic.xml"
看看“ weblogic.xml”
如果您以开发人员模式运行,并且每次在源代码上更改jsp时都不会重新部署产品,
No, for several reasons. 不,出于几个原因。 JSPs have to be compiled .
JSP必须进行编译 。 They are not simple html pages.
它们不是简单的html页面。 They are also cached by the server.
它们也由服务器缓存。 You most definitely have to redeploy the project.
您绝对必须重新部署该项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.