idea 自身添加依赖及打成jar包

添加依赖

1:file--》project structure--》moudle--》+项目名--》dependencies--》+指定集成下载好的依赖路径--》ok即好

打成jar包

2:file--》project structure--》artifacts--》+项目名--》填写主工程类名--》+同时在下面选择需要的依赖

原文地址:https://www.cnblogs.com/xlhlx/p/12202265.html