struts.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE struts PUBLIC
  3. "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
  4. "http://struts.apache.org/dtds/struts-2.3.dtd">
  5. <struts>
  6. <constant name="struts.enable.DynamicMethodInvocation" value="true" />
  7. <!-- 开启使用开发模式,详细错误提示 -->
  8. <constant name="struts.devMode" value="true"/>
  9. <!-- 指定每次请求到达,重新加载资源文件 -->
  10. <constant name="struts.i18n.reload" value="true"/>
  11. <!-- 指定每次配置文件更改后,自动重新加载 -->
  12. <constant name="struts.configuration.xml.reload" value="true"/>
  13. <!-- 指定XSLT Result使用样式表缓存 -->
  14. <constant name="struts.xslt.nocache" value="true"/>
  15. <!-- 修改上传文件的大小 -->
  16. <constant name="struts.multipart.maxSize" value="50000000"/>
  17. <package name="happy" namespace="/" extends="struts-default">
  18. <action name="data*" method = "{1}" class="com.happy.action.DataAction">
  19. <result name="list">/jsp/list.jsp</result>
  20. </action>
  21. <action name="admin*" method = "{1}" class="com.happy.action.adminAction">
  22. </action>
  23. <action name="config*" method = "{1}" class="com.happy.action.configAction">
  24. </action>
  25. <action name="house*" method = "{1}" class="com.happy.action.houseAction">
  26. </action>
  27. <action name="book*" method = "{1}" class="com.happy.action.bookAction">
  28. </action>
  29. <action name="app*" method = "{1}" class="com.happy.action.appAction">
  30. </action>
  31. </package>
  32. <package name="interfaces" namespace="/interfaces" extends="struts-default">
  33. <!-- 接口总调度开始 -->
  34. <action name="main*" method="{1}" class="com.happy.action.MainAction">
  35. </action>
  36. </package>
  37. </struts>