struts-2.5.16下载、配置与运行

struts-2.5.16下载、配置与运行


下载

下载 
密码:ll3v

官网

引入jar包

  • asm-5.2.jar
  • asm-commons-5.2.jar
  • commons-fileupload-1.3.3.jar
  • commons-io-2.5.jar
  • commons-lang-2.4.jar
  • commons-lang3-3.6.jar
  • commons-logging-1.1.3.jar
  • freemarker-2.3.26-incubating.jar
  • javassist-3.20.0-GA.jar
  • log4j-api-2.10.0.jar
  • ognl-3.1.15.jar
  • struts2-core-2.5.16.jar

webxml

 
<?xml version="1.0" encoding="UTF-8"?>

<web-app id="starter" version="2.4"

xmlns="http://java.sun.com/xml/ns/j2ee"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee

http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">


<filter>

<filter-name>struts2</filter-name>

<!--

<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>

-->

<!-- 以下路径中没有ng目录 -->

<filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter </filter-class>


</filter>

<filter-mapping>

<filter-name>struts2</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

</web-app>

struts.xml

猜你喜欢

转载自blog.csdn.net/qq_39021393/article/details/81321646