在 STS 上,一个类引用在相同 package 中另一个类,但是报 cannot be resolved to a type 错误。

解决方法 : 

 

Alternatively, you can highlight the project :

Choose Clean ... from Project menu and if you have activated the Build Automatically option (in the same menu), the classes will be generated anew.

 

参考资料 : 

Why can't eclipse resolve class in same package?, stackOverFlow 

相关文章:

  • 2021-04-01
  • 2021-12-21
  • 2021-11-27
  • 2021-09-23
  • 2021-05-26
  • 2021-06-23
猜你喜欢
  • 2021-04-27
  • 2021-08-21
  • 2021-05-29
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2021-10-28
相关资源
相似解决方案