返回列表 发帖

[Spring+My Batis整合开发] 求解决Spring+MyBatis企业开发实战(14)启动的异常问题

Spring+MyBatis企业开发实战 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'deptDao' defined in file [E:\study2\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\hrmapp\WEB-INF\classes\org\fkit\hrm\dao\DeptDao.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.Class]: Could not convert constructor argument value of type [java.lang.String] to required type [java.lang.Class]: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Class'; nested exception is java.lang.IllegalArgumentException: Error loading class [org.fkit.hrm.dao.DeptDao]: problem with class file or dependent class.

at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:724)

at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)

返回列表