簡體   English   中英

tomcat歡迎文件不在其相對路徑中

[英]tomcat welcome file is not sitting in its relative path

我有一個應用程序,該應用程序在根2個文件夾中,我希望歡迎文件位於該文件夾下

dist / index.html所以我像這樣添加我的歡迎文件:

<welcome-file-list>
    <welcome-file>dist/index.html</welcome-file>
</welcome-file-list>

project looks like this 

    application
       -dist/index.html
       -app/index.html

發生的事情是,它工作正常,但找不到html文件中的所有腳本,我為它們獲取404。 當我不使用歡迎直接進入文件夾時,它將加載很好的application / dist / index.html
任何想法 ?

感謝您的回答,事實證明,如果您想使用context標簽,則應用程序應位於服務器之外,因此我嘗試了另一種方法,它可以正常工作

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM