java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: Cause: java.lang.ClassNotFoundException: Cannot find class: com/example.oayz.entity.Employee
很多大佬说是
报错原因是这个 resultType=“UserEntity”找不到,或者resultMap的问题
我的不是
原因在这里
<resultMap id="EmployeeMap" type="com/example/oayz/entity/Employee">
应该是下面才对
type="com.example.oayz.entity.Employee">