Error starting Tomcat context. Exception
Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name ‘myWebSecurityConfig’: Unsatisfied dependency express
Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name ‘myWebSecurityConfig’: Unsatisfied dependency expressed through field ‘userService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘userServiceImpl’: Unsatisfied dependency expressed through field ‘baseMapper’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.xxx.server.mapper.UserMapper’ available: expected at least 1 bean which qualifies as autowire candidate.
错误原因:启动类没有加上mapper扫描。
解决:在启动类上加上注解@MapperScan(“com.xxx.server.mapper”)
更多推荐
所有评论(0)