IDEA提示cannot find declaration to go to解决方案

IDEA提示cannot find declaration to go to解决方案

问题:

当你在IDEA中,按住ctrl+鼠标左键,不能够进入类和方法,并出现提示 “can not find declaration to go to”,如下图:

 

 

解决方案:

鼠标右键+src(或者项目模块名),然后选型Mark Directiry as,最后选择sourcers root(源根),如下图:

 

 

posted @ 2022-07-12 10:01  整合侠  阅读(5417)  评论(0编辑  收藏  举报