truts.beangle-struts-s2.3.8.2.source-code.struts-plugin.xml Maven / Gradle / Ivy
<?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.serve.static" value="true"/> <constant name="struts.serve.static.browserCache" value="true"/> <constant name="struts.i18n.encoding" value="UTF-8"/> <!--默认i18n和配置文件不重复加载--> <constant name="struts.devMode" value="false"/> <constant name="struts.configuration.xml.reload" value="false"/> <constant name="beangle.i18n.reload" value="false"/> <constant name="beangle.i18n.resources" value="beangle,application"/> <constant name="beangle.convention.action.suffix" value="Action"/> <constant name="beangle.convention.default.parent.package" value="beangle"/> <constant name="beangle.convention.preloadftl" value="true"/> <!-- max 50M --> <constant name="struts.multipart.maxSize" value="52428800"/> <constant name="struts.mapper.class" value="beangle"/> <constant name="struts.objectFactory" value="beangle" /> <constant name="struts.staticContentLoader" value="beangle" /> <constant name="struts.enable.DynamicMethodInvocation" value="true" /> <package name="beangle" extends="struts-default"> <interceptors> <interceptor name="i18n2" class="org.beangle.struts2.interceptor.I18nInterceptor"/> <interceptor name="flash" class="org.beangle.struts2.interceptor.FlashInterceptor"/> <interceptor name="ssc" class="org.beangle.struts2.interceptor.SimpleServletConfigInterceptor"/> <interceptor-stack name="beangleStack"> <interceptor-ref name="i18n2"/> <interceptor-ref name="fileUpload"/> <interceptor-ref name="flash"/> </interceptor-stack> </interceptors> <default-interceptor-ref name="beangleStack"/> </package> <bean type="org.beangle.commons.text.i18n.TextBundleRegistry" class="org.beangle.commons.text.i18n.impl.DefaultTextBundleRegistry" scope="singleton"/> <bean type="org.beangle.commons.text.i18n.TextFormater" class="org.beangle.commons.text.i18n.impl.DefaultTextFormater" scope="singleton"/> <bean type="com.opensymphony.xwork2.UnknownHandler" class="org.beangle.struts2.convention.ConventionRouteHandler"/> <!--mapper--> <bean type="org.apache.struts2.dispatcher.mapper.ActionMapper" name="beangle" class="org.beangle.struts2.convention.mapper.ConventionActionMapper"/> <!--config--> <bean type="com.opensymphony.xwork2.config.PackageProvider" name="beangle" class="org.beangle.struts2.convention.config.ConventionPackageProvider"/> <!--result--> <bean type="org.beangle.struts2.convention.result.ResultBuilder" class="org.beangle.struts2.convention.result.DefaultResultBuilder"/> <!--router--> <bean type="org.beangle.struts2.convention.route.ActionBuilder" class="org.beangle.struts2.convention.route.impl.DefaultActionBuilder"/> <bean type="org.beangle.struts2.convention.route.ViewMapper" class="org.beangle.struts2.convention.route.impl.DefaultViewMapper"/> <bean type="org.beangle.struts2.convention.route.ProfileService" class="org.beangle.struts2.convention.route.impl.ProfileServiceImpl"/> <bean type="com.opensymphony.xwork2.ObjectFactory" name="beangle" class="org.beangle.struts2.convention.BeangleObjectFactory" /> <bean type="com.opensymphony.xwork2.factory.ResultFactory" name="beangle" class="org.beangle.struts2.convention.BeangleResultFactory" /> <bean type="org.apache.struts2.dispatcher.StaticContentLoader" name="beangle" class="org.beangle.struts2.util.BeangleStaticContentLoader" /> <constant name="struts.freemarker.manager.classname" value="org.beangle.struts2.freemarker.BeangleFreemarkerManager"/> <bean name="beangle" class="org.beangle.struts2.freemarker.BeangleFreemarkerManager"/> <bean name="flat" type="org.beangle.commons.text.i18n.TextCache" class="org.beangle.commons.text.i18n.impl.FlatTextCache"/> <bean name="empty" type="org.beangle.commons.text.i18n.TextCache" class="org.beangle.commons.text.i18n.impl.NullTextCache"/> <bean type="org.beangle.struts2.view.bean.ActionUriRender" class="org.beangle.struts2.view.bean.DefaultActionUriRender"/> <bean type="org.apache.struts2.views.TagLibraryModelProvider" name="b" class="org.beangle.struts2.view.tag.BeangleTagLibrary" /> <bean type="org.beangle.struts2.view.template.TemplateEngine" name="default" class="org.beangle.struts2.view.template.FreemarkerTemplateEngine" /> </struts>