我使用intellij。
好的,tomcat 正在运行,一切正常,但是离开给我一个 404 错误。
我的 web.xml 位于项目根目录的 webcontent 文件夹中。项目文件夹/WebContent/WEB-INF
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" version="4.0">
<display-name>WebTicket</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
我的页面位于:projectfolder/WebContent
那么在项目属性中,项目方面是 web。
我使用 servle + maven。
任何 Ideia 如何解决它?
问题可能出在文件夹结构中,如果更改项目方面应该解决,我在某处读过,但是该怎么做呢?