【java错误】Could not determine type for decimal

环境:

mysql数据库

springMVC,hibernate映射

问题发生:

mysql 中的decimal类型字段,在HBM映射文件对应字段的类型匹配上

场景还原:

        <property name="Refund" type = "decimal">
          <column name="Refund" length = "20" scale = "2"/>
        </property>

解决方案

取消decimal的type,去掉length和scale 就好了


版权声明:本文为xuexiiphone原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。