Error creating bean with name 'dindanController': Unsatisfied dependency expressed through field 'dindanService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dindanServiceImpl': Unsatisfied dependency expressed through field 'dindanMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dindanMapper' defined in file [G:\ruoyi-vue2\RuoYi-Vue-master\ruoyi-admin\target\classes\com\ruoyi\Dindan\mapper\DindanMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/ruoyi/framework/config/MyBatisConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSes
时间: 2023-05-21 10:06:52 浏览: 254
spring boot整合mybatis-plus启动报错问题及解答.pdf
sionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class java.lang.String for property 'resultType'. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'String'. 请问这个错误是因为什么导致的?
很抱歉,我需要更多的信息来回答你的问题。这个错误常常是因为MyBatis无法解析映射器XML中的类型别名导致的。可能的原因包括在XML中错误地设置了类型别名或缺少必要的类型别名文件。检查一下XML配置和相关的类型别名文件是否存在问题和错误,可能有助于解决这个错误。
阅读全文