<?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

最新文章

  1. Lua 单例类
  2. Gradle使用指南
  3. hadoop 文件系统API操作
  4. 图解TCP/IP读书笔记(四)
  5. *[hackerrank]Maximizing XOR
  6. Android之 环境搭建
  7. HDU 4336-Card Collector(状压,概率dp)
  8. AppDomain.CurrentDomain.GetAssemblies()
  9. Java基础知识强化57:经典排序之希尔排序(ShellSort)
  10. JDK1.8源码阅读系列之一:ArrayList
  11. Spring 之 示例(Java之负基础实战)
  12. Flex之HTML5视频播放解决方案
  13. Windows7搭建Wamp环境
  14. zabbix_agentd客户端安装与配置(windows操作系统)
  15. centos6.5 MySQL数据库的安装
  16. Python ImportError: No module named &#39;requests&#39;的解决方法
  17. Compiler showing 'pi' symbol on error
  18. Spark本地运行成功,集群运行空指针异。
  19. C Runtime Library、C  Runtime
  20. DevExpress v17.2新版亮点—WPF篇(二)

热门文章

  1. Appium PageObject
  2. 给idea配置默认的maven
  3. Codeforces Round #412 (rated, Div. 2, base on VK Cup 2017 Round 3) A Is it rated?
  4. eclipse 创建jsp报错
  5. 切换usb口的命令
  6. webservice使用方法
  7. GRUB2 分析 (三)
  8. Clonal hematopoiesis of indeterminate potential(意义不明的克隆性造血)-CHIP
  9. 照着官网来安装openstack pike之neutron安装
  10. 20145322《Java程序设计》第5次实验报告