简体   繁体   English

Eclipse无法找到Web资源

[英]Eclipse can't find Web Resource

In Luna Eclipse I am getting an error undefined JavaScript file ("resources/js/services.js") in my HTML file. 在Luna Eclipse中,我在HTML文件中收到错误undefined JavaScript file ("resources/js/services.js") Everything work perfect in the browser, it is just Eclipse not able to find the resource files (JavaScript and CSS). 一切都在浏览器中完美运行,只是Eclipse无法找到资源文件(JavaScript和CSS)。

在此输入图像描述

Since I saw your project contains a pom.xml, so I suppose you are using the MAVEN. 因为我看到你的项目包含一个pom.xml,所以我想你正在使用MAVEN。 If you usingthe maven to generate the job, just do a "mvn clean:clean" and "mvn eclipse:eclipse" by using terminator or cmd cd to your project folder. 如果您使用maven生成作业,只需使用终结符或cmd cd到项目文件夹中执行“mvn clean:clean”和“mvn eclipse:eclipse”。 It happened on me so that I can't find the resource folder when I used the Spring. 它发生在我身上,以便在使用Spring时找不到资源文件夹。 Have a shot. 有一枪。

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

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