dimanche 10 mai 2015

Eclipse does not recognize static web content under src/main/resources/static

I am working on a Spring boot web project. I have an index.html file under src/main/webapp, and a .js file under src/main/resources/static/js.

Eclipse is complaining on the <script></script> inclusion inside the index.html file: Undefined Javascript file. The above is also the case for css files under src/main/resources/static/css.

In addition, I'm using wro to generate unified angularjs-bootstrap js and css files, which are generated under target\generated-resources\static and Eclipse cannot find them either.

Is there any way to configure Eclipse to include the above directories?

Aucun commentaire:

Enregistrer un commentaire