项目导入包名和源码的路径不一致

Detects package statements that do not correspond to the project directory structure and reports cla当我们导入项目的时候发现包名报错,我们可以看看报错信息:
Package name ‘cn.sh.ideal.auth.core.authorize.controller’ does not correspond to the file path ‘src.cn.sh.ideal.auth.core.authorize.controller’
意思就是包名和文件名不一致
快捷键Ctrl+shift+alt+s打开
Detects package statements that do not correspond to the project directory structure and reports cla
这样我们就解决了包名与文件名路径不一致的问题啦!

相关文章:

  • 2021-10-14
  • 2021-08-13
  • 2022-02-11
  • 2022-12-23
  • 2021-07-16
  • 2021-06-12
  • 2021-08-24
猜你喜欢
  • 2021-08-15
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2021-12-25
  • 2021-07-02
  • 2021-07-14
相关资源
相似解决方案