Normal use mybatisplus
<dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.0.4</version> </dependency>
There is an abnormality in the original project to convert an enumeration value use and found:
ERROR com.shein.common.handler.SheinExceptionHandler 统一异常处理,接口:..../page,
异常信息:org.mybatis.spring.MyBatisSystemException: 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......enums.ApplyTypeEnum.2
The official website to explain:
https://github.com/baomidou/mybatis-plus/issues/522
Both solutions
1. degraded by the corresponding mybatisPlus version 3.0.4 -> 3.0-RC3
2. If the project uses spring-boot-devtools remove the dependency on the spring-boot-devtools