Apache Shiro权限管理Case实操2的项目启动失败了
来源:3-10 基于Apache Shiro权限管理Case实操-2

qq_有梦想的咸鱼君_0
2020-01-31
是我的包下载的不对吗老师
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2020-01-31 13:31:16.632 ERROR 10060 — [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘methodValidationPostProcessor’ defined in class path resource [org/springframework/boot/autoconfigure/validation/ValidationAutoConfiguration.class]: Unsatisfied dependency expressed through method ‘methodValidationPostProcessor’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘shiroFilter’ defined in class path resource [com/mmall/demo2/ShiroConfiguration.class]: Unsatisfied dependency expressed through method ‘shiroFilter’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘securityManager’ defined in class path resource [com/mmall/demo2/ShiroConfiguration.class]: Unsatisfied dependency expressed through method ‘securityManager’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘authRealm’: Unsatisfied dependency expressed through field ‘userService’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userServicelmpl’: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘userMapper’ defined in file [C:\Users\Administrator\Desktop\55\demo2\target\classes\com\mmall\demo2\mapper\UserMapper.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 [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method ‘sqlSessionFactory’ threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: ‘file [C:\Users\Administrator\Desktop\55\demo2\target\classes\mapper\UserMapper.xml]’; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is ‘file [C:\Users\Administrator\Desktop\55\demo2\target\classes\mapper\UserMapper.xml]’. Cause: org.apache.ibatis.builder.BuilderException: Ambiguous collection type for property ‘permission’. You must specify ‘javaType’ or ‘resultMap’.
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:798) ~[spring-beans-5.2.3.RELEASE.jar:5.2.3.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:539) ~[spring-beans-5.2.3.RELEASE.jar:5.2.3.RELEASE]
1回答
-
Jimin
2020-01-31
你好,UserMapper.xml里有一个sql你没指定返回值类型,你检查一下看看
00
相似问题