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

前端 未结 5 1381
北恋
北恋 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条回答
  •  萌比男神i
    2021-01-05 07:28

    On STS 2.5.1

    1. right click on your project
    2. click on properties
    3. Click on 'Java Build path'
    4. Click "Source" tab
    5. Navigate to default out put folder
    6. Browse and add your path
    7. Finish

提交回复
热议问题