org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘testRedisController’: Unsatisfied dependency expressed through field ‘userTestService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘userTestServiceImpl’: Unsatisfied dependency expressed through field ‘userMapper’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userMapper’ defined in file [D:\BigData\esQueryPro\target\classes\com\yz\mapper\UserMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property ‘sqlSessionFactory’ or ‘sqlSessionTemplate’ are required
经过排查 发现此处两个注解有冲突,删除@EnableAutoConfiguration可让mapperscan生效