在html中取后台action传过来的值,报错,错误如下:
解决方法如下:
1、看HTML中取值时是否判断了外键关联的实体为null,例如:
<#if withCapital.fundInfoManage??>${withCapital.fundInfoManage.fundNameAbbr!}</#if>
2、看一下配置文件中有无关联的外键实体的字段:
<many-to-one name="fundInfoManage" column="C_FUND_CODE" property-ref="fundCode" class="cn.bizws.ismp.cms.entity.pms.FundInfoManage" insert="false" update="false">
</many-to-one>