百度了很久,大部分是在项目的路径下与index.html创建一个WEB-INF文件夹人,在该文件夹下创建一个web.xml文件并添加如下内容:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http