1. File-->Project Structure

2.Artifacts--> +  --> JAR -->Empty

3.name --> + -->Module OutPut

4.选择Module 点击OK

5.选择 重命名的jar --> Create Manifest

6. Main Class

7.Build -->Build Artifacts..

8.Build

然后生成的 mysparkdemo.jar 在项目out 路径下