我解决的办法是把.m2仓库所有文件删除,重新maven project就可以了。

但是在做这一步之前,报错如下:

①org.springframework.beans.factory.UnsatisfiedDependencyException 

②ContainerBase.addChild: start:   

org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]] 

③Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: 

org.apache.catalina.LifecycleException

⑤Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'userMapper'

⑥java.lang.IllegalStateException: Failed to load ApplicationContext

⑦Caused by: java.lang.ClassNotFoundException: Cannot find class: com.github.pagehelper.PageInterceptor

大概报了这七个错误,特别恶心。原因可能是我导入其他项目时,maven project污染了.m2仓库中的文件。

相关文章:

  • 2021-08-23
  • 2021-12-17
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-20
猜你喜欢
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2021-04-06
  • 2021-10-10
  • 2021-07-10
相关资源
相似解决方案