<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
当你把红色的代码黏贴上去之后 会出错,此时将你的代码剪切一遍 再黏贴就没问题了

当在Web应用中粘贴并运行红色代码时出现错误,通过复制粘贴操作可解决问题。文章详细介绍了如何配置Struts2过滤器,并解决在开发过程中遇到的常见问题。


被折叠的 条评论
为什么被折叠?



