Class cannot be resolved to a type

当发生这种错误,发现明明已经导包,却一直提示Class cannot be resolved to a type时,去pom文件中找到下图这两个依赖,看看是不是含有scope,如果有把两个都删掉,然后回去就可以重新导包,之后就成功了。

Class cannot be resolved to a type

相关文章:

  • 2021-11-17
  • 2021-07-27
  • 2021-05-29
  • 2021-08-21
  • 2021-07-09
猜你喜欢
  • 2022-01-13
  • 2021-08-07
  • 2021-11-27
  • 2021-09-23
  • 2021-06-23
相关资源
相似解决方案