struts2 set struts.devMode to false to disable this message
2013-07-23 20:29
393 查看
see http://struts.apache.org/release/2.2.x/docs/devmode.html
And thirdly, perhaps the setting which is less widely known, and therefore a source of much confusion: it will
raise the level of debug or normally ignorable problems to errors. For example: when you
submit a field which cannot be set on an action 'someUnknownField', it will normally be ignored. However, when you're in development mode,
an exception will be thrown, telling you an invalid field was submitted. This is very useful for debugging or testing large forms, but can also be confusing if you're relying on parameters in your request that are not set on the action, but
which you are using directly in your view layer (warning: bad practice, you should always validate input from the web).
这个其实不影响,只是开发模式设置的,你可以在struts.xml设置
<constant name="struts.devMode" value="false“/>
就可以屏蔽掉了
And thirdly, perhaps the setting which is less widely known, and therefore a source of much confusion: it will
raise the level of debug or normally ignorable problems to errors. For example: when you
submit a field which cannot be set on an action 'someUnknownField', it will normally be ignored. However, when you're in development mode,
an exception will be thrown, telling you an invalid field was submitted. This is very useful for debugging or testing large forms, but can also be confusing if you're relying on parameters in your request that are not set on the action, but
which you are using directly in your view layer (warning: bad practice, you should always validate input from the web).
这个其实不影响,只是开发模式设置的,你可以在struts.xml设置
<constant name="struts.devMode" value="false“/>
就可以屏蔽掉了
相关文章推荐
- Developer Notification (set struts.devMode to false to disable this message)报错
- 严重: Developer Notification (set struts.devMode to false to disable this message): Unexpected Excepti
- DateTimePicker 控件出现 "You must be in ShowCheckbox mode to set to this date" 的错误
- DateTimePicker 控件出现 "You must be in ShowCheckbox mode to set to this date" 的错误
- Mysql:You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true
- struts2配置常量<constant name="struts.devMode">,将值修改为true(开发模式有什么好处)的好处
- struts2 <constant name="struts.devMode" value="true" /> 报错
- struts2 笔记struts.devMode struts.configuration.xml.reload
- struts2 开发模式 struts.devMode
- [Graphics] UIColor created with component values far outside the expected range, Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once.
- Struts Problem Report 异常 struts.devMode=false
- DateTimePicker 控件出现 "You must be in ShowCheckbox mode to set to this date" 的错误
- struts2配置常量<constant name="struts.devMode">,将值修改为true(开发模式有什么好处)的好处
- Struts2笔记:struts.devMode value="true"导致的错误
- <constant name="struts.devMode" value="false" />
- struts2配置常量<constant name="struts.devMode">,将值修改为true(开发模式有什么好处)的好处
- How to set Display Settings to EXTEND mode in Windows 7
- This file is set to build for a version older than the project deployment target. Functionality may
- struts2 的web.xml 配置文件报错org.apache.struts2.impl.StrutsActionProxy.getErrorMessage(StrutsActionProxy.java:69)
- null, message from server: "Host ***" is not allowed to connect to this MySQL server"