IDEA导包(以junit为例)

## IDEA导包(以junit为例)
1. 准备junit的jar包:
* hamcrest-core-1.3.jar
* junit-4.12.jar
2. 在项目中新建文件夹:lib
3. 将jar包复制进去
4. 打开项目结构设置:File - Project Structure
5. 依次选择“Modules - 你的项目模块 - Dependencies”,打开项目依赖设置
6. 点击“+”、“JARs or directories”
7. 选择当前项目中的lib文件夹,确定,即可完成导入。

## Lombok的使用
1. 将 lombok-1.18.4.jar 包导入项目中
2. IDEA安装插件:lombok-plugins-{版本}.zip
3. 启用注解:
* File - Settings - Build,Execution,Deployment
* Compiler - Annontation Proccessor
* 选择Default,勾选“enable annotations proccessor”
posted @ 2019-04-26 19:20  又又IT  阅读(2240)  评论(0编辑  收藏  举报