您的位置: 首页 > 文章 > Detects package statements that do not correspond to the project directory structure and reports cla Detects package statements that do not correspond to the project directory structure and reports cla 分类: 文章 • 2023-03-24 08:58:16 项目导入包名和源码的路径不一致 当我们导入项目的时候发现包名报错,我们可以看看报错信息: 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打开 这样我们就解决了包名与文件名路径不一致的问题啦!