Eclipse & Tomcat: How to specify which folder is served from the project?

前端 未结 5 1378
北恋
北恋 2021-01-05 06:48

I\'m using Eclipse 3.4 and Tomcat 5.5 and I have a Dynamic Web Project set up. I can access it from http://127.0.0.1:8080/project/ but by default it serves files from WebCon

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-05 07:18

    Can be done through Eclipse, no need to manually edit .settings files.

    In Eclipse 3.6 (and possibly earlier releases),

    1. right click on your project
    2. click on properties
    3. Click on 'Deployment Assembly'
    4. Add... Folder -> Next
    5. Navigate to source folder
    6. Finish

提交回复
热议问题