All Downloads are FREE. Search and download functionalities are using the official Maven repository.

struts2.struts2-aws-lambda-support-example.1.4.1.source-code.struts.xml Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
        "http://struts.apache.org/dtds/struts-2.5.dtd">
<struts>

    <constant name="struts.enable.DynamicMethodInvocation" value="false"/>

    <!-- Disable dev mode in productions -->
    <constant name="struts.devMode" value="false"/>
    <constant name="struts.handle.exception" value="false"/>

    <!--  Overwrite Convention -->
    <!-- Necessary to allow class scanner to find our action classes. Because root "org.apache.struts2.*" is excluded by default.-->
    <constant name="struts.convention.exclude.packages" value="org.apache.struts.*,org.springframework.web.struts.*,org.springframework.web.struts2.*,org.hibernate.*"/>
    <constant name="struts.convention.action.suffix" value="Controller"/>
    <constant name="struts.convention.action.mapAllMatches" value="true"/>
    <constant name="struts.convention.package.locators" value="actions"/>
    <constant name="struts.convention.default.parent.package" value="data"/>
    <constant name="struts.action.extension" value=",,xml,json,action"/>
    <constant name="struts.rest.defaultExtension" value="json" />

    <constant name="struts.custom.i18n.resources" value="frontend,validation,exceptions"/>

    <constant name="struts.mapper.class" value="rest"/>

    <!-- Use Jackson lib as content handler for all JSON requests -->
    <bean type="org.apache.struts2.rest.handler.ContentTypeHandler" name="jackson"
          class="org.apache.struts2.rest.handler.JacksonJsonHandler"/>
    <constant name="struts.rest.handlerOverride.json" value="jackson"/>

    <!-- Set to false if the json content can be returned for any kind of http method -->
    <constant name="struts.rest.content.restrictToGET" value="false"/>

    <!-- Set custom validation failure status code -->
    <constant name="struts.rest.validationFailureStatusCode" value="406"/>

    <!-- Allow public access for demo purposes. Should be specified in production! -->
    <constant name="struts.corsHeader.allowOrigin" value="*"/>

    <!-- Set encoding to UTF-8, default is ISO-8859-1 -->
    <constant name="struts.i18n.encoding" value="UTF-8"/>

    <package name="data" extends="struts-lambda-support" namespace="/data">
    </package>

</struts>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy