freemarker.template.TemplateModelException: Method public java.lang.String org.apache.commons.lang.exception.NestableRuntimeException.getMessage(int) threw an exception when invoked on net.sf.json.JSONException: java.lang.NoSuchMethodException: Property 'contents' has no getter method in class 'class com.yesrj.plm2.workflow.action.WorkflowDesignAction$FlowViewNode'
出现这个错误,并非是get函数出现了错误,而可能是你的转换的class非public。
本文探讨了Freemarker模板中出现TemplateModelException的具体原因及其解决思路,指出问题可能源于转换的class非public属性。
510

被折叠的 条评论
为什么被折叠?



