简体   繁体   English

hotswap代理在java web项目中不适用于jsp,css,js等

[英]hotswap agent not working for jsp, css, js etc in a java web project

I tried to setup hotswapagent with eclipse and tomcat from http://www.hotswapagent.org . 我试图从http://www.hotswapagent.org设置eclipse和tomcat的hotswapagent。 It worked fine for .java files but I can't make it to work for other resources. 它适用于.java文件,但我无法使其适用于其他资源。 I even tried to create a hotswap-agent.properties file as mentioned in http://www.hotswapagent.org/quick-start/configuration but it did not work. 我甚至试图创建一个hotswap-agent.properties文件,如http://www.hotswapagent.org/quick-start/configuration中所述,但它不起作用。 My hotswap-agent.properties file looks like below 我的hotswap-agent.properties文件如下所示

watchResources=${basedir}/src/main/resources
extraWebappContext=${basedir}/src/main/webapp/html

I even tried target folder instead of src but nothing works. 我甚至尝试了目标文件夹而不是src,但没有任何作用。 Please help. 请帮忙。

Try with adding the following line to hotswap-agent.properties: 尝试将以下行添加到hotswap-agent.properties:

webappDir=c:/yourPath/src/main/webapp

Also follow these: 也请遵循以下:

Configuration for Netbeans Netbeans的配置

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

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