抛出异常:nested exception is org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column ‘apply_type’ from result set. Cause: java.lang.IllegalArgumentException: No enum constant com.ics.admin.domain.IcsPropertyApply.ApplyType.0
问题:本地没有问题,线上报错
处理方法很简单:
在application.yml 下找到 mybatis-plus下的configuration里面添加
default-enum-type-handler: org.apache.ibatis.type.EnumOrdinalTypeHandler
重新编译,上传服务器 启动 就搞定了