IntelliJ热交换类,但不是JSF页面 [英] IntelliJ hot swapping classes, but not JSF pages
问题描述
首先,我想说StackOverflow上有很多页面,我尝试了所有相关的页面,但我做错了。
First of all, I would like to say that there is plenty of pages on StackOverflow and I tried all I found related, but I am doing something wrong.
我将IntelliJ服务器设置为:
I have IntelliJ server set up to:
- 服务器Tomcat 8
- JDK 8u65
- Maven
- IntelliJ 14
- 在运行/调试配置中我设置了
- VM选项:
- 更新操作:更新资源
- 关闭帧停止:更新课程和资源
- server Tomcat 8
- JDK 8u65
- Maven
- IntelliJ 14
- In Run/Debug configuration I have set
- VM Options:
- On Update action: Update resources
- On frame deactivation: Update classes and resources
如果我更改任何类的主体(例如返回值),一切都很好,并按照我的预期热交换类。
If I change the body of any class (e.g.returned value), everything is fine and it hot swap the class as I would expect.
不幸的是,当我更改一些JSF资源时(在webapp目录下),没有任何反应。我查看了Tomcat临时目录,其中文件被移入,我只能看到旧的。
Unfortunatelly when I change some JSF resources(under webapp directory), nothing happens. I looked into Tomcat temp directory, where files are moved into, and I can see only the old ones.
我还试图将webapp目录添加为IntelliJ中的资源,并且它没有帮助。
I also tried to add webapp directory as resources in IntelliJ, and it did not help.
我哪里有错?
我的项目结构:
src └── main ├── java | └── *.java ├── resources | └── spring-web-context.xml └── webapp ├── template.xhtml ├── ... └── index.xhtml
推荐答案
我决定对IntelliJ进行全新安装并采取一些 JSF示例项目。
I decided to do fresh instalation of IntelliJ and take some JSF sample project.
我发现所描述的设置正常,所以我的工作项目或IntelliJ的安装有问题
I found out that the settings described is working, so there is something wrong either with my working project, or instalation of IntelliJ
这篇关于IntelliJ热交换类,但不是JSF页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
- VM Options:
- VM选项: