Struts2的一些常量和含义的应用 (二)

2014-11-24 03:29:16 · 作者: · 浏览: 1
ion.xml.reload = true
### - raising various debug or ignorable problems to errors
### For example: normally a request to foo.action someUnknownField=true should
### be ignored (given that any value can come from the web and it
### should not be trusted). However, during development, it may be
### useful to know when these errors are happening and be told of
### them right away.
struts.devMode = false//开发时候设置为trus可以开发出更加详细的信息
### when set to true, Struts will act much more friendly for developers. This
### includes:
### - struts.i18n.reload = true
### - struts.configuration.xml.reload = true
### - raising various debug or ignorable problems to errors
### For example: normally a request to foo.action someUnknownField=true should
### be ignored (given that any value can come from the web and it
### should not be trusted). However, during development, it may be
### useful to know when these errors are happening and be told of
### them right away.
struts.devMode = false//开发时候设置为trus可以开发出更加详细的信息

### Standard UI theme
### Change this to reflect which path should be used for JSP control tag templates by default
struts.ui.theme=x html//设置默认视图,最好为simple
### Standard UI theme
### Change this to reflect which path should be used for JSP control tag templates by default
struts.ui.theme=xhtml//设置默认视图,最好为simple

### Configuration reloading
### This will cause the configuration to reload struts.xml when it is changed
struts.configuration.xml.reload=false//设置为True一旦Struts.xml文件修改就自动加载


摘自 小愤青