首页 > 解决方案 > 无法从 Eclipse 中配置的 Tomcat 提供 webapp

问题描述

我有一个 spring 应用程序,我部署在 eclipse 中配置的 tomcat 服务器上,以及一个放置在 src/main/webapp 文件夹中的前端应用程序。上下文路径是/asig。它用于 REST 调用。

我已将 webapp 文件夹添加到部署程序集:

在此处输入图像描述

这是 mvn clean install 后的目标文件夹:

在此处输入图像描述

但是,当我启动服务器时,我无法访问我的前端应用程序。我收到 404,但我不知道为什么。我尝试了一切:https://localhost:8443/https://localhost:8443/index.htmlhttps://localhost:8443/asighttps://localhost:8443/asig/index.html什么都没有作品。

我到处搜索,我能找到的唯一答案就是将我的前端应用程序放在 src/main/webapp 中,一切都会正常工作......

标签: springtomcatweb-applicationsweb-deployment

解决方案


推荐阅读