idea搭建maven spark环境(新建不出scala的类)

问题:建了一个spark的maven项目,发现new不出scala

idea搭建maven spark环境(新建不出scala的类)

解决: 如图

1.

idea搭建maven spark环境(新建不出scala的类)

2.添加scala

idea搭建maven spark环境(新建不出scala的类)

3.发现还是new不出scala的类,发现scala文件夹是灰的

idea搭建maven spark环境(新建不出scala的类)

4.添加到source

idea搭建maven spark环境(新建不出scala的类)

idea搭建maven spark环境(新建不出scala的类)

5.成功

idea搭建maven spark环境(新建不出scala的类)

本人写的第一篇博客,2019-10-27 22:50:00,纪念一下