속성 파일 struts. properties
이 파일 에는 일련의 키 쌍 이 포함 되 어 있 습 니 다. 기본 default. properties 의 내용 을 중국어 로 복사 하여 번역 합 니 다. 각 속성 에 대한 설명 은 프로그램 24 - 1 과 같 습 니 다.
프로그램 24 - 1 default. properties 설정 옵션
- ### Struts 2 , ,
- ### org.apache.struts2.config.Configuration
- # struts.configuration=org.apache.struts2.config.DefaultConfiguration
-
- ###
- # struts.locale=en_US
- struts.i18n.encoding=UTF-8
-
- ### , ,
- ### com.opensymphony.xwork2.ObjectFactory
- # struts.objectFactory = spring
-
- ### Spring , autoWiring ,
- ### name、type、auto constructor(Name )
- struts.objectFactory.spring.autoWire = name
-
- ### Spirng , ,
- true、false(true )
- struts.objectFactory.spring.useClassCache = true
-
- ### , "tiger"or"notiger",
- ### com.opensymphony.xwork2.util.ObjectTypeDeterminer
- #struts.objectTypeDeterminer = tiger
- #struts.objectTypeDeterminer = notiger
-
- ### MIME-type multipart/form-data
- # struts.multipart.parser=cos
- # struts.multipart.parser=pell
- struts.multipart.parser=jakarta
- # javax.servlet.context.tempdir
- struts.multipart.saveDir=
- struts.multipart.maxSize=2097152
-
- ###
- # struts.custom.properties=application,org/apache
- /struts2/extension/custom
-
- ### URL Action
- #struts.mapper.class=org.apache.struts2.dispatcher.
- mapper.DefaultActionMapper
-
- ### URL , , , action,jnlp,do
- struts.action.extension=action
-
- ### FilterDispatcher ,true Struts serves static
- content jar
- ### false static content <context_path>/struts
- struts.serve.static=true
-
- ### Struts
- struts.serve.static.browserCache=true
-
- ### , true,
- <action>
- ### <action name="*/*" method="{2}" class="actions.{1}">
- struts.enable.DynamicMethodInvocation = true
-
- ### action "/", true,
- "/foo/edit" "/foo/save"
- ### <action name="*/*" method="{2}" class="actions.{1}">
- struts.enable.SlashesInActionNames = false
-
- ### %{} tags
- struts.tag.altSyntax=true
-
- ### Struts
- struts.devMode = false
-
- ###
- struts.i18n.reload=false
-
- ### UI template UI templates
- struts.ui.theme=simple
- struts.ui.templateDir=template
- # , ftl、vm、jsp
- struts.ui.templateSuffix=ftl
-
- ### struts.xml ,
- struts.configuration.xml.reload=false
-
- ### velocity , velocity.properties
- struts.velocity.configfile = velocity.properties
-
- ### velocity context
- struts.velocity.contexts =
-
- ### velocity
- struts.velocity.toolboxlocation=
-
- ### HTTP、HTTPS
- struts.url.http.port = 80
- struts.url.https.port = 443
- ### URL includeParams, none、get、all
- struts.url.includeParams = get
-
- ### ( .properties )
- struts.custom.i18n.resources=com.demo.struts2.resources.
- ApplicationResources
-
- ### servlet ,
- WebLogic、Orion、and OC4J
- struts.dispatcher.parametersWorkaround = false
-
- ### Freemarker Manager , org.apache.struts2.
- views.freemarker.FreemarkerManager
- #struts.freemarker.manager.classname=org.apache.struts2.
- views.freemarker.FreemarkerManager
-
- ### FreeMarker templates
- struts.freemarker.templatesCache=false
-
- ### BeanWrapper
- struts.freemarker.beanwrapperCache=false
-
- ### StrutsBeanWrapper javadocs
- struts.freemarker.wrapper.altMap=true
-
- ### XSLT
- struts.xslt.nocache=false
-
- ### Struts
- struts.configuration.files=struts-default.xml,
- struts-plugin.xml,struts.xml
-
- ### "/"
- struts.mapper.alwaysSelectFullNamespace=false
그 중에서 굵 은 부분 은 비교적 중요 하고 자주 사용 하 는 배치 속성 으로 뒤의 개발 에서 우 리 는 위의 굵 은 부분의 속성 에 대해 서도 배치 할 것 이다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
thymeleaf로 HTML 페이지를 동적으로 만듭니다 (spring + gradle)지난번에는 에서 화면에 HTML을 표시했습니다. 이번에는 화면을 동적으로 움직여보고 싶기 때문에 입력한 문자를 화면에 표시시키고 싶습니다. 초보자의 비망록이므로 이상한 점 등 있으면 지적 받을 수 있으면 기쁩니다! ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.