1、首先打开idea,点击FIle–>>Project Sturcture 2、选择Module模块,找到Java的目录 3、鼠标右击选择Sources,在点击Apply即可 这样Java源文件夹就变成蓝色了