当先锋百科网

首页 1 2 3 4 5 6 7

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'accountService': 
Unsatisfied dependency expressed through field 'accountMapper': Error creating bean with name 'org.mybatis.spring.SqlSessionFactoryBean#0': Lookup method resolution failed

经检查确定是pom文件中引用的spring插件版本不正确

改为与教程相同的6.0.0-M2版本后问题消失
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-context</artifactId>
    <version>6.0.0-M2</version>
</dependency>