Image of How to change the default deploy path of web resources in Eclipse

ADVERTISEMENT

Introduction

When developing a web application in eclipse, the default deploy path of java classes is “WEB-INF/classes” and every folder defined under WebContent is automatically deployed under the root path of the application.

1- Custom deployment path

In order to set a custom deployment path for your resources in Eclipse, you can do the following:

  • Right-click the web project -> properties
  • Select Deployment Assembly
  • The following window is displayed:

folders

In the above window, you can set the custom deployment path of java classes as well as all folders defined under WebContent.

Summary

When developing a web application in eclipse, the default deploy path of java classes is “WEB-INF/classes” and every folder defined under WebContent is automatically deployed under the root path of the application.

Next Steps

If you're interested in learning more about the basics of Java, coding, and software development, check out our Coding Essentials Guidebook for Developers, where we cover the essential languages, concepts, and tools that you'll need to become a professional developer.

Thanks and happy coding! We hope you enjoyed this article. If you have any questions or comments, feel free to reach out to jacob@initialcommit.io.