![](/img/trans.png)
[英]How is ContextLoaderListener from Spring being run even when web.xml does not include it?
[英]Eclipse: Does only “Run As > Run On Server” call web.xml
我有一個Java腳本,當前可以右鍵單擊並選擇Run As> Java Application,以啟動Jersey的網頁。 它不是servlet(盡管它通過Jersey調用了servlet?...我認為...)
但是,我的項目文件夾中仍然有一個web.xml文件。
在什么情況下調用或不調用web.xml?
無論如何,如果您的項目中存在Web xml,則在服務器上運行它時將被引用。有關Web xml的更多信息,請閱讀https://developers.google.com/appengine/docs/java/config/webxml
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.