在eclipse中設定server.xml與context.xml分離

來源:互聯網
上載者:User
文章目錄
  • 在eclipse中設定<context>與<server>分離

 

在eclipse中設定<context>與<server>分離

開啟server面板,如

開啟後雙擊所要編輯的伺服器,即可開啟tomcat編輯器(tomcat server editor)如

我使用的是eclipse3.5版本,應該3.X版本都差不多。

在Overview--》Server Options的Publish module context to seperate XML files前面打鉤,儲存即可。

附:
    所謂<Context>與<Server>分離,是指將<Context>標籤放到一個單獨的檔案中(一般是conf/Catalina/localhost),而不是放到server.xml中。

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.