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

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
这样我们就解决了包名与文件名路径不一致的问题啦!

相关文章: