Eclipse + Tomcat - Serve webapp directly from workspace

后端 未结 9 681
旧时难觅i
旧时难觅i 2021-02-04 10:13

What is the ideal way to configure Tomcat to serve directly from my project\'s directory inside of my workspace? (related)

I want my static web resources

9条回答
  •  被撕碎了的回忆
    2021-02-04 10:52

    Normally webapplications are hosted under webapps directory, but its also possible to configure an external directory as a webapplication host directory in tomcat. You can simply set your eclipse workspace project output directory as an application base. This can be done either by using Tomcat's manager application to deploy an application from an external directory or by simply editing server.xml (which is under conf directory) to define your application like below:

    ....
    
    
    
    
    
    
    
    

提交回复
热议问题