zoukankan      html  css  js  c++  java
  • steps1>Struct2struts.xml

    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd"
    >

    <struts>
    <constant name="struts.devMode" value="false"/>是否自动加载配置文件
    <constant name="struts.i18n.encoding" value="UTF-8"/>
    <constant name="struts.enable.DynamicMethodInvocation" value="false"/>动态方法调用,为true时,
                            就可以在struts.xml配置“*”的通配符,来调用action里的方法(下面介绍)
    <constant name="struts.objectFactory" value="spring"/>说明Struts2的 对象池创建工厂为Spring的对象池
    <constant name="struts.multipart.maxSize" value="1000000000" />上传文件最大值
    <package name="power-default" namespace="/" extends="struts-default">
    <global-results>
    <result name="jsonStringPage">/pages/jsonString.jsp</result>
    <result name="error">/error.jsp</result>
    <result name="invalid.token">/error.jsp</result>
    <result name="ifsuccess">/psychosis/ifsuccess.jsp</result>
    </global-results>
    <global-exception-mappings>
    <exception-mapping result="error" exception="java.lang.Throwable"/>
    </global-exception-mappings>
    </package>


    <include file="struts-admin.xml"/>
    <include file="struts-app.xml"/>
    <include file="struts-archives.xml"/>
    <include file="struts-print.xml"/>


    </struts>



  • 相关阅读:
    ssh 无密码互通
    React之jsx转js
    分布式事务参考
    js跨域解决方案
    idea编译时JDK版本变化
    计数算法
    Rocketmq消息持久化
    rocketmq安装
    nginx高可用配置
    nginx负载均衡设置
  • 原文地址:https://www.cnblogs.com/GenghisKhan/p/2314064.html
Copyright © 2011-2022 走看看