Error creating bean with name 'callSystemController': Unsatisfied dependency expressed through field

报错如下:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'callSystemController': Unsatisfied dependency expressed through field 'callSystemService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'CallSystemService': Unsatisfied dependency expressed through field 'callSystemDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'callSystemDao' defined in URL [jar:file:/D:/practice/po/Demo/demo-console/target/demo-console-1.0.0/WEB-INF/lib/demo-dao-1.0.0.jar!/com/huawei/promethues/demo/dao/CallSystemDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in URL [jar:file:/D:/practice/po/Demo/demo-console/target/demo-console-1.0.0/WEB-INF/lib/demo-dao-1.0.0.jar!/spring/spring-dao.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'class path resource [mybatis/mapper/CallSystem.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving JdbcType. Cause: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.CHARACTER VARYING(128)

经过检查,,错误如下:mybatis中的mapper 标签中jdbcType类型不对,将类型CHARACTER VARYING(128)改为VARCHAR.

并且从数据库查寻出来的结果为一个List,要将接口类型设置为List

 

你可能感兴趣的:(spring,mvc)