这是Struts.xml和Struts.properties位置
这是web.xml位置
<?xml version="1.0" encoding="UTF-8"?>
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
id="WebApp_ID" version="3.1">
struts
org.apache.struts2.dispatcher.filter.StrutsPrepare-
AndExecuteFilter
StrutsDemo
<welcome-file>index.jsp</welcome-file>
这是代码
我用的Struts版本:2.5.12