struts.xml路径修改后的web配置
2024-08-27 13:26:37
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_9" 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">
<display-name>SSHBoot</display-name>
<!-- 方式一: -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:config/struts.xml</param-value>
</context-param>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<!-- 方式二: -->
<!-- <init-param> -->
<!-- <param-name>cofig</param-name> -->
<!-- <param-value>classpath:config/struts.xml</param-value> -->
<!-- </init-param> -->
</filter> <filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping> <welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
自测可以调用到我定义的action
最新文章
- Lua 单例类
- Gradle使用指南
- hadoop 文件系统API操作
- 图解TCP/IP读书笔记(四)
- *[hackerrank]Maximizing XOR
- Android之 环境搭建
- HDU 4336-Card Collector(状压,概率dp)
- AppDomain.CurrentDomain.GetAssemblies()
- Java基础知识强化57:经典排序之希尔排序(ShellSort)
- JDK1.8源码阅读系列之一:ArrayList
- Spring 之 示例(Java之负基础实战)
- Flex之HTML5视频播放解决方案
- Windows7搭建Wamp环境
- zabbix_agentd客户端安装与配置(windows操作系统)
- centos6.5 MySQL数据库的安装
- Python ImportError: No module named &#39;requests&#39;的解决方法
- Compiler showing 'pi' symbol on error
- Spark本地运行成功,集群运行空指针异。
- C Runtime Library、C Runtime
- DevExpress v17.2新版亮点—WPF篇(二)
热门文章
- Appium PageObject
- 给idea配置默认的maven
- Codeforces Round #412 (rated, Div. 2, base on VK Cup 2017 Round 3) A	 Is it rated?
- eclipse 创建jsp报错
- 切换usb口的命令
- webservice使用方法
- GRUB2 分析 (三)
- Clonal hematopoiesis of indeterminate potential(意义不明的克隆性造血)-CHIP
- 照着官网来安装openstack pike之neutron安装
- 20145322《Java程序设计》第5次实验报告