今天在搭框架时,发现日志里有有这么几行
2011-08-07 22:17:31,453 DEBUG com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.debug:68 - Entering nullPropertyValue [target=[com.opensymphony.xwork2.DefaultTextProvider@16eb6bc], property=struts]
2011-08-07 22:17:31,984 DEBUG com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.debug:68 - Entering nullPropertyValue [target=org.apache.struts2.util.AttributeMap@17b40fe, property=templateDir]
2011-08-07 22:17:32,437 DEBUG com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.debug:68 - Entering nullPropertyValue [target=org.apache.struts2.util.AttributeMap@9fdee, property=theme]
以前没注意,不知道这些空属性值是否有影响,怎么修复
看名称的话是struts的配置属性,你可以在struts-core.jar包中的default.properties里看到相应的说明:
[code="java"]
struts.ui.theme=xhtml
struts.ui.templateDir=template
#sets the default template type. Either ftl, vm, or jsp
[/code]
这里显示为DEBUG日志,说明本身并不是错误,是在ongl表达式转换成对象时出现的空值情况,你可以把日志级别调高,这样就看不到了。
[quote]
这里显示为DEBUG日志,说明本身并不是错误,是在ongl表达式转换成对象时出现的空值情况,你可以把日志级别调高,这样就看不到了。
[/quote]